Node editor - Added copy/pasting

This commit is contained in:
Robert authored and RobertBeekman committed 2022-10-04 23:39:16 +02:00
1 parent 2c32abaee5
commit 35b593a31d
11 files changed
+191 -26

No files matched your search

@@ -1,4 +1,5 @@
using System;
using System.Linq;
using Artemis.Core;
namespace Artemis.UI.Shared.Services.NodeEditor.Commands;
@@ -36,7 +37,8 @@ public class AddNode : INodeEditorCommand, IDisposable
/// <inheritdoc />
public void Execute()
{
_nodeScript.AddNode(_node);
if (!_nodeScript.Nodes.Contains(_node))
_nodeScript.AddNode(_node);
_isRemoved = false;
}