Small fix for node add operators: use the UNDO option so they get registered in undo stack properly.

This commit is contained in:
Lukas Toenne
2013-05-10 09:54:25 +00:00
parent 037784d5b5
commit a961b683fc

View File

@@ -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",