[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56613] trunk/blender/release/scripts/ startup/bl_operators/node.py: Fix for add_node operator: needs to have SKIP_SAVE set for the settings collection to prevent it from re-using settings from a previous call .

Lukas Toenne lukas.toenne at googlemail.com
Thu May 9 12:13:13 CEST 2013


Revision: 56613
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56613
Author:   lukastoenne
Date:     2013-05-09 10:13:13 +0000 (Thu, 09 May 2013)
Log Message:
-----------
Fix for add_node operator: needs to have SKIP_SAVE set for the settings collection to prevent it from re-using settings from a previous call. This would otherwise lead to python exceptions when those properties don't exist for the other node type (point in case: node_tree only is defined for group nodes).

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-09 10:03:38 UTC (rev 56612)
+++ trunk/blender/release/scripts/startup/bl_operators/node.py	2013-05-09 10:13:13 UTC (rev 56613)
@@ -46,6 +46,7 @@
             name="Settings",
             description="Settings to be applied on the newly created node",
             type=NodeSetting,
+            options={'SKIP_SAVE'},
             )
 
     @staticmethod




More information about the Bf-blender-cvs mailing list