Открыть боковую панель
nikitronn
sverchok
Коммиты
a1b60d49
Не подтверждена
Коммит
a1b60d49
создал
Июн 16, 2022
по автору
Sergey
Зафиксировано автором
GitHub
Июн 16, 2022
Просмотр файлов
add support of socket menus inside node groups (#4533)
владелец
82f85094
Изменения
1
Скрыть пробелы
Построчно
Рядом
core/node_group.py
Просмотр файла @
a1b60d49
...
...
@@ -61,6 +61,25 @@ class SvGroupTree(SvNodeTreeCommon, bpy.types.NodeTree):
"Group trees are using its own update system
\n
"
"This system supports canceling processing next nodes by pressing escape during group tree editing"
)
@
property
def
sv_show_socket_menus
(
self
):
"""It searches root tree and returns its eponymous attribute"""
for
area
in
bpy
.
context
.
screen
.
areas
:
# this is not Sverchok editor
if
area
.
ui_type
!=
BlTrees
.
MAIN_TREE_ID
:
continue
# editor does not have any active tree
if
not
area
.
spaces
[
0
].
node_tree
:
continue
# this editor edits another trees, What!?
if
self
not
in
(
p
.
node_tree
for
p
in
area
.
spaces
[
0
].
path
):
continue
return
area
.
spaces
[
0
].
path
[
0
].
node_tree
.
sv_show_socket_menus
return
False
def
upstream_trees
(
self
)
->
List
[
'SvGroupTree'
]:
"""
It will try to return all the tree sub trees (in case if there is group nodes)
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать