Add support for custom duplicate of SceneGraphNode

This commit is contained in:
Wojtek Figat
2021-02-01 16:03:33 +01:00
parent d69b005792
commit b22805f866
7 changed files with 103 additions and 18 deletions

View File

@@ -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;