Fix not supported dragging prefab actors between windows

#2065
This commit is contained in:
Wojtek Figat
2023-12-12 18:59:52 +01:00
parent 8aaa5710df
commit b297b9f185

View File

@@ -698,6 +698,10 @@ namespace FlaxEditor.SceneGraph.GUI
if (thisHasScene != otherHasScene)
return false;
// Reject dragging actors between prefab windows (different roots)
if (!thisHasScene && ActorNode.Root != actorNode.Root)
return false;
// Reject dragging parents and itself
return actorNode.Actor != null && actorNode != ActorNode && actorNode.Find(Actor) == null;
}