Merge branch 'Tryibion-fix-prefab-trans'
This commit is contained in:
@@ -658,8 +658,11 @@ namespace FlaxEditor.SceneGraph.GUI
|
||||
}
|
||||
}
|
||||
actor.Name = item.ShortName;
|
||||
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