[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56648] trunk/blender/release/scripts/ startup/bl_operators/node.py: Small fix for node add operators: use the UNDO option so they get registered in undo stack properly.

Lukas Toenne lukas.toenne at googlemail.com
Fri May 10 11:54:25 CEST 2013


Revision: 56648
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56648
Author:   lukastoenne
Date:     2013-05-10 09:54:25 +0000 (Fri, 10 May 2013)
Log Message:
-----------
Small fix for node add operators: use the UNDO option so they get registered in undo stack properly.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_operators/node.py

Modified: trunk/blender/release/scripts/startup/bl_operators/node.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/node.py	2013-05-10 08:08:29 UTC (rev 56647)
+++ trunk/blender/release/scripts/startup/bl_operators/node.py	2013-05-10 09:54:25 UTC (rev 56648)
@@ -124,6 +124,7 @@
     '''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 @@
     '''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",




More information about the Bf-blender-cvs mailing list