mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Node editor - Added copy/pasting
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user