Skip to content

Commit

Permalink
[unreal]清理mixin时,应该清空所有子类的FunctionMapsCaches,fix #1639
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Jan 22, 2024
1 parent dae96bc commit a506929
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions unreal/Puerts/Source/JsEnv/Private/JSGeneratedClass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,13 @@ void UJSGeneratedClass::Restore(UClass* Class)
PP = &(*PP)->Next;
}
Class->ClearFunctionMapsCaches();
for (TObjectIterator<UClass> It; It; ++It)
{
if (It->IsChildOf(Class) && !It->HasAnyClassFlags(CLASS_Abstract))
{
It->ClearFunctionMapsCaches();
}
}
}

void UJSGeneratedClass::InitPropertiesFromCustomList(uint8* DataPtr, const uint8* DefaultDataPtr)
Expand Down

0 comments on commit a506929

Please sign in to comment.