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-09 14:13:13 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2013-05-09 14:13:13 +0400
commitefcfe88adccbc1ce76407887aef61dab349d7eb2 (patch)
tree65873b17ec93654dc9104b6761de1ad4ae34fd8e /release/scripts/startup/bl_operators/node.py
parentc1f408c0589ab497041672e4137652de06df6d50 (diff)
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).
Diffstat (limited to 'release/scripts/startup/bl_operators/node.py')
-rw-r--r--release/scripts/startup/bl_operators/node.py1
1 files changed, 1 insertions, 0 deletions
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