@@ -335,17 +335,17 @@ void MCore::UnloadEngine()
|
||||
void MCore::ReloadScriptingAssemblyLoadContext()
|
||||
{
|
||||
// Clear any cached class attributes (see https://github.com/FlaxEngine/FlaxEngine/issues/1108)
|
||||
for (auto e : CachedClassHandles)
|
||||
for (const auto& e : CachedClassHandles)
|
||||
{
|
||||
e.Value->_hasCachedAttributes = false;
|
||||
e.Value->_attributes.Clear();
|
||||
}
|
||||
for (auto e : CachedAssemblyHandles)
|
||||
for (const auto& e : CachedAssemblyHandles)
|
||||
{
|
||||
MAssembly* a = e.Value;
|
||||
if (!a->IsLoaded() || !a->_hasCachedClasses)
|
||||
continue;
|
||||
for (auto q : a->GetClasses())
|
||||
for (const auto& q : a->GetClasses())
|
||||
{
|
||||
MClass* c = q.Value;
|
||||
c->_hasCachedAttributes = false;
|
||||
|
||||
Reference in New Issue
Block a user