From efcfe88adccbc1ce76407887aef61dab349d7eb2 Mon Sep 17 00:00:00 2001 From: Lukas Toenne Date: Thu, 9 May 2013 10:13:13 +0000 Subject: 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). --- release/scripts/startup/bl_operators/node.py | 1 + 1 file changed, 1 insertion(+) (limited to 'release/scripts/startup/bl_operators/node.py') diff --git a/release/scripts/startup/bl_operators/node.py b/release/scripts/startup/bl_operators/node.py index d658350a5c3..39d701a8f25 100644 --- a/release/scripts/startup/bl_operators/node.py +++ b/release/scripts/startup/bl_operators/node.py @@ -46,6 +46,7 @@ class NodeAddOperator(): name="Settings", description="Settings to be applied on the newly created node", type=NodeSetting, + options={'SKIP_SAVE'}, ) @staticmethod -- cgit v1.2.3