diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-05-10 13:54:25 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-05-10 13:54:25 +0400 |
commit | a961b683fc62f893e70d9e0fbf80ed4d1e31b857 (patch) | |
tree | 028b3d59abee392f974d30a8a3b350bd5db9e80a | |
parent | 037784d5b5aaa20f18f6d096470f1f132b58c060 (diff) |
Small fix for node add operators: use the UNDO option so they get registered in undo stack properly.
-rw-r--r-- | release/scripts/startup/bl_operators/node.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/node.py b/release/scripts/startup/bl_operators/node.py index c7081b6b5c1..b6f0d0fc769 100644 --- a/release/scripts/startup/bl_operators/node.py +++ b/release/scripts/startup/bl_operators/node.py @@ -124,6 +124,7 @@ class NODE_OT_add_node(NodeAddOperator, Operator): '''Add a node to the active tree''' bl_idname = "node.add_node" bl_label = "Add Node" + bl_options = {'REGISTER', 'UNDO'} # Add a node and link it to an existing socket @@ -131,6 +132,7 @@ class NODE_OT_add_and_link_node(NodeAddOperator, Operator): '''Add a node to the active tree and link to an existing socket''' bl_idname = "node.add_and_link_node" bl_label = "Add and Link Node" + bl_options = {'REGISTER', 'UNDO'} link_socket_index = IntProperty( name="Link Socket Index", |