Merge remote-tracking branch 'origin/master' into 1.7
# Conflicts: # Flax.flaxproj
This commit is contained in:
@@ -886,6 +886,14 @@ void Actor::EndPlay()
|
||||
OnDisable();
|
||||
}
|
||||
|
||||
for (auto* script : Scripts)
|
||||
{
|
||||
CHECK_EXECUTE_IN_EDITOR
|
||||
{
|
||||
script->OnDestroy();
|
||||
}
|
||||
}
|
||||
|
||||
OnEndPlay();
|
||||
|
||||
// Clear flag
|
||||
@@ -899,15 +907,6 @@ void Actor::EndPlay()
|
||||
e->EndPlay();
|
||||
}
|
||||
|
||||
// Fire event for scripting
|
||||
for (auto* script : Scripts)
|
||||
{
|
||||
CHECK_EXECUTE_IN_EDITOR
|
||||
{
|
||||
script->OnDestroy();
|
||||
}
|
||||
}
|
||||
|
||||
// Inform attached scripts
|
||||
for (int32 i = 0; i < Scripts.Count(); i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user