Коммит 53f7d211 создал по автору zeffii's avatar zeffii
Просмотр файлов

add quicklink trigger update of tree from exisitng node

владелец 78008383
......@@ -76,6 +76,8 @@ class SvLinkNewNodeInput(bpy.types.Operator):
locx, locy = recursive_framed_location_finder(new_node, loc_xy)
new_node.location = locx, locy
new_node.process_node(context)
return {'FINISHED'}
......
......@@ -96,6 +96,7 @@ def add_connection(tree, bl_idname_new_node, offset):
outputs = existing_node.outputs
inputs = new_node.inputs
# first scenario not handelled in b28 yet.
if existing_node.bl_idname in supported_mesh_viewers and bl_idname_new_node == 'IndexViewerNode':
new_node.draw_bg = True
connect_idx_viewer(tree, existing_node, new_node)
......@@ -109,7 +110,9 @@ def add_connection(tree, bl_idname_new_node, offset):
# connect_stethoscope to first visible output socket of active node
links.new(socket, inputs[0])
break
tree.update() # without this the node won't show output until an update is triggered manually
# existing_node.process_node(None)
elif bl_idname_new_node == 'SvVDExperimental':
......@@ -120,7 +123,8 @@ def add_connection(tree, bl_idname_new_node, offset):
if 'edges' in output_map:
links.new(outputs[output_map['edges']], inputs[1])
tree.update()
tree.update()
# existing_node.process_node(None)
else:
...
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать