Открыть боковую панель
nikitronn
sverchok
Коммиты
53f7d211
Коммит
53f7d211
создал
Окт 07, 2019
по автору
zeffii
Просмотр файлов
add quicklink trigger update of tree from exisitng node
владелец
78008383
Изменения
2
Скрыть пробелы
Построчно
Рядом
node_tree.py
Просмотр файла @
53f7d211
...
...
@@ -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'
}
...
...
ui/nodeview_rclick_menu.py
Просмотр файла @
53f7d211
...
...
@@ -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.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать