diff options
author | Bartek Skorupa <bartekskorupa@bartekskorupa.com> | 2013-05-04 19:56:12 +0400 |
---|---|---|
committer | Bartek Skorupa <bartekskorupa@bartekskorupa.com> | 2013-05-04 19:56:12 +0400 |
commit | e86a1f62ad32692b8fe535d0cc0f8cdf48ac06f2 (patch) | |
tree | c90a7192f7d73d6a1b96bc18222cde398e3f4150 | |
parent | 9d4f65a846cf17a8830d372d73d864cca05d76ad (diff) |
In 'Swap Nodes' when swapping shaders - sockets' default value is passed when names of old and new nodes' sockets match
-rw-r--r-- | node_efficiency_tools.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node_efficiency_tools.py b/node_efficiency_tools.py index ee9665fa..eef13bb2 100644 --- a/node_efficiency_tools.py +++ b/node_efficiency_tools.py @@ -19,7 +19,7 @@ bl_info = { 'name': "Nodes Efficiency Tools", 'author': "Bartek Skorupa", - 'version': (2, 26), + 'version': (2, 27), 'blender': (2, 6, 6), 'location': "Node Editor Properties Panel (Ctrl-SPACE)", 'description': "Nodes Efficiency Tools", @@ -807,6 +807,7 @@ class NodesSwap(Operator, NodeToolBase): for new_i, new_input in enumerate(new_node.inputs): if old_input.name == new_input.name: replace.append((old_i, new_i)) + new_input.default_value = old_input.default_value break elif option == 'ShaderNodeAddShader': if node.type == 'ADD_SHADER': |