Skip to content

Commit

Permalink
Merge branch 'bugfix/v2.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Theverat committed May 12, 2018
2 parents b45b421 + b62f9a4 commit f6410f0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions utils/compatibility.py
Expand Up @@ -124,8 +124,10 @@ def update_colormix_remove_min_max_sockets():

for node in find_nodes(node_tree, "LuxCoreNodeTexColorMix"):
if node.mode == "clamp" and "Min" in node.inputs and "Max" in node.inputs:
node.mode_clamp_min = node.inputs["Min"].default_value
node.mode_clamp_max = node.inputs["Max"].default_value
node.inputs["Min"].enabled = False
node.inputs["Max"].enabled = False
socket_min = node.inputs["Min"]
socket_max = node.inputs["Max"]
node.mode_clamp_min = socket_min.default_value
node.mode_clamp_max = socket_max.default_value
node.inputs.remove(socket_min)
node.inputs.remove(socket_max)
print('Updated %s node "%s" in tree "%s" to new version' % (node.bl_idname, node.name, node_tree.name))

0 comments on commit f6410f0

Please sign in to comment.