Fix calling OnParentChanged in Actor load

This commit is contained in:
Wojtek Figat
2021-02-02 12:52:21 +01:00
parent c00b32364a
commit d2dba5680b
6 changed files with 30 additions and 8 deletions

View File

@@ -156,6 +156,9 @@ void UIControl::OnParentChanged()
// Base
Actor::OnParentChanged();
if (!IsDuringPlay())
return;
UICONTROL_INVOKE(ParentChanged);
}