mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-21 09:46:03 +08:00
Mark CopyNode as virtual (#252)
This commit is contained in:
parent
c2a99ba2b5
commit
ff2c1e8158
@ -171,7 +171,7 @@ namespace XNodeEditor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary> Creates a copy of the original node in the graph </summary>
|
/// <summary> Creates a copy of the original node in the graph </summary>
|
||||||
public XNode.Node CopyNode(XNode.Node original) {
|
public virtual XNode.Node CopyNode(XNode.Node original) {
|
||||||
Undo.RecordObject(target, "Duplicate Node");
|
Undo.RecordObject(target, "Duplicate Node");
|
||||||
XNode.Node node = target.CopyNode(original);
|
XNode.Node node = target.CopyNode(original);
|
||||||
Undo.RegisterCreatedObjectUndo(node, "Duplicate Node");
|
Undo.RegisterCreatedObjectUndo(node, "Duplicate Node");
|
||||||
@ -211,4 +211,4 @@ namespace XNodeEditor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user