Fix missing prefab instanced actors events sending on changes apply (regression)
This commit is contained in:
@@ -385,7 +385,7 @@ bool PrefabInstanceData::SynchronizePrefabInstances(Array<PrefabInstanceData>& p
|
|||||||
{
|
{
|
||||||
SceneObject* obj = sceneObjects->At(i);
|
SceneObject* obj = sceneObjects->At(i);
|
||||||
Actor* actor = dynamic_cast<Actor*>(obj);
|
Actor* actor = dynamic_cast<Actor*>(obj);
|
||||||
if (actor && actor->IsDuringPlay())
|
if (actor)
|
||||||
{
|
{
|
||||||
const bool shouldBeActiveInHierarchy = actor->GetIsActive() && (!actor->GetParent() || actor->GetParent()->IsActiveInHierarchy());
|
const bool shouldBeActiveInHierarchy = actor->GetIsActive() && (!actor->GetParent() || actor->GetParent()->IsActiveInHierarchy());
|
||||||
if (shouldBeActiveInHierarchy != actor->IsActiveInHierarchy())
|
if (shouldBeActiveInHierarchy != actor->IsActiveInHierarchy())
|
||||||
|
|||||||
Reference in New Issue
Block a user