Better fix
This commit is contained in:
@@ -650,11 +650,11 @@ namespace FlaxEditor.SceneGraph.GUI
|
||||
}
|
||||
}
|
||||
actor.Name = item.ShortName;
|
||||
if (_dragAssets.Objects[i] is PrefabItem p)
|
||||
actor.Transform = spawnParent.Transform + actor.Transform;
|
||||
else
|
||||
actor.Transform = spawnParent.Transform;
|
||||
if (_dragAssets.Objects[i] is not PrefabItem p)
|
||||
actor.Transform = Transform.Identity;
|
||||
var previousTrans = actor.Transform;
|
||||
ActorNode.Root.Spawn(actor, spawnParent);
|
||||
actor.LocalTransform = previousTrans;
|
||||
actor.OrderInParent = newOrder;
|
||||
}
|
||||
result = DragDropEffect.Move;
|
||||
|
||||
Reference in New Issue
Block a user