Add support for custom duplicate of SceneGraphNode
This commit is contained in:
@@ -159,7 +159,7 @@ namespace FlaxEditor.Windows.Assets
|
||||
public void Duplicate()
|
||||
{
|
||||
// Peek things that can be copied (copy all actors)
|
||||
var objects = Selection.Where(x => x.CanCopyPaste && x != Graph.Main).ToList().BuildAllNodes().Where(x => x.CanCopyPaste && x is ActorNode).ToList();
|
||||
var objects = Selection.Where(x => x.CanDuplicate && x != Graph.Main).ToList().BuildAllNodes().Where(x => x.CanDuplicate && x is ActorNode).ToList();
|
||||
if (objects.Count == 0)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user