1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-21 01:36:03 +08:00

Mark CopyNode as virtual (#252)

This commit is contained in:
Romain Théry 2020-04-23 11:27:02 +02:00 committed by GitHub
parent c2a99ba2b5
commit ff2c1e8158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,7 +171,7 @@ namespace XNodeEditor {
}
/// <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");
XNode.Node node = target.CopyNode(original);
Undo.RegisterCreatedObjectUndo(node, "Duplicate Node");
@ -211,4 +211,4 @@ namespace XNodeEditor {
}
}
}
}
}