diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-05-09 14:13:13 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-05-09 14:13:13 +0400 |
commit | efcfe88adccbc1ce76407887aef61dab349d7eb2 (patch) | |
tree | 65873b17ec93654dc9104b6761de1ad4ae34fd8e | |
parent | c1f408c0589ab497041672e4137652de06df6d50 (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).
-rw-r--r-- | release/scripts/startup/bl_operators/node.py | 1 |
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 |