Code style fix

This commit is contained in:
Wojtek Figat
2023-10-14 16:49:09 +02:00
parent 65a02fc9fd
commit a87eaf82f0
2 changed files with 25 additions and 44 deletions

View File

@@ -189,7 +189,7 @@ namespace FlaxEditor.Actions
script.Parent = parentActor;
if (_orderInParent != -1)
script.OrderInParent = _orderInParent;
_orderInParent = script.OrderInParent; // Ensure _orderInParent is correct for script that want to use it.
_orderInParent = script.OrderInParent; // Ensure order is correct for script that want to use it later
if (_prefabObjectId != Guid.Empty)
SceneObject.Internal_LinkPrefab(Object.GetUnmanagedPtr(script), ref _prefabId, ref _prefabObjectId);
Editor.Instance.Scene.MarkSceneEdited(parentActor.Scene);