Fix compilation regression

This commit is contained in:
Wojtek Figat
2025-06-22 12:12:42 +02:00
parent d7df403e5e
commit ef5d45874a
3 changed files with 4 additions and 0 deletions

View File

@@ -480,8 +480,10 @@ void Actor::DestroyChildren(float timeLeft)
// Get all actors
Array<Actor*> children = Children;
#if USE_EDITOR
// Inform Editor beforehand
Level::callActorEvent(Level::ActorEventType::OnActorDestroyChildren, this, nullptr);
#endif
if (_scene && IsActiveInHierarchy())
{