Fix T47832 - node switching did not update viewport render

This commit is contained in:
Greg Zaal 2016-03-19 11:02:36 +02:00 committed by Sergey Sharybin
parent de351922ee
commit 3b7e75875b
Notes: blender-bot 2023-02-14 19:49:48 +01:00
Referenced by issue #47832, Cycles: switching "Mix Shader" to "Add Shader" do not update in viewport render. (Node wrangler add-on)
1 changed files with 1 additions and 0 deletions

View File

@ -1897,6 +1897,7 @@ class NWSwitchNodeType(Operator, NWBase):
if new_node.outputs:
links.new(new_node.outputs[0], out_src_link.to_socket)
nodes.remove(node)
force_update(context)
return {'FINISHED'}