Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Toenne <lukas.toenne@googlemail.com>2013-05-10 13:54:25 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2013-05-10 13:54:25 +0400
commita961b683fc62f893e70d9e0fbf80ed4d1e31b857 (patch)
tree028b3d59abee392f974d30a8a3b350bd5db9e80a /release/scripts/startup/bl_operators/node.py
parent037784d5b5aaa20f18f6d096470f1f132b58c060 (diff)
Small fix for node add operators: use the UNDO option so they get registered in undo stack properly.
Diffstat (limited to 'release/scripts/startup/bl_operators/node.py')
-rw-r--r--release/scripts/startup/bl_operators/node.py2
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",