Открыть боковую панель
nikitronn
sverchok
Коммиты
9bd7ded4
Коммит
9bd7ded4
создал
Окт 19, 2019
по автору
Ilya Portnov
Просмотр файлов
update/fix reload test.
владелец
c3c09baa
Изменения
2
Скрыть пробелы
Построчно
Рядом
menu.py
Просмотр файла @
9bd7ded4
...
@@ -28,7 +28,7 @@ import bl_operators
...
@@ -28,7 +28,7 @@ import bl_operators
import
sverchok
import
sverchok
from
sverchok.utils
import
get_node_class_reference
from
sverchok.utils
import
get_node_class_reference
from
sverchok.utils.logging
import
info
from
sverchok.utils.logging
import
info
,
error
,
exception
from
sverchok.utils.sv_help
import
build_help_remap
from
sverchok.utils.sv_help
import
build_help_remap
from
sverchok.ui.sv_icons
import
node_icon
,
icon
from
sverchok.ui.sv_icons
import
node_icon
,
icon
from
sverchok.utils.context_managers
import
sv_preferences
from
sverchok.utils.context_managers
import
sv_preferences
...
@@ -530,6 +530,7 @@ def unregister_node_panels():
...
@@ -530,6 +530,7 @@ def unregister_node_panels():
global
node_panels
global
node_panels
for
panel_type
in
reversed
(
node_panels
):
for
panel_type
in
reversed
(
node_panels
):
bpy
.
utils
.
unregister_class
(
panel_type
)
bpy
.
utils
.
unregister_class
(
panel_type
)
node_panels
=
[]
def
reload_menu
():
def
reload_menu
():
menu
,
node_count
,
original_categories
=
make_categories
()
menu
,
node_count
,
original_categories
=
make_categories
()
...
...
utils/testing.py
Просмотр файла @
9bd7ded4
...
@@ -123,6 +123,7 @@ def link_node_tree(reference_blend_path, tree_name=None):
...
@@ -123,6 +123,7 @@ def link_node_tree(reference_blend_path, tree_name=None):
if
tree_name
in
bpy
.
data
.
node_groups
:
if
tree_name
in
bpy
.
data
.
node_groups
:
raise
Exception
(
"Tree named `{}' already exists in current scene"
.
format
(
tree_name
))
raise
Exception
(
"Tree named `{}' already exists in current scene"
.
format
(
tree_name
))
with
bpy
.
data
.
libraries
.
load
(
reference_blend_path
,
link
=
True
)
as
(
data_src
,
data_dst
):
with
bpy
.
data
.
libraries
.
load
(
reference_blend_path
,
link
=
True
)
as
(
data_src
,
data_dst
):
#debug("Linked: %s", reference_blend_path)
data_dst
.
node_groups
=
[
tree_name
]
data_dst
.
node_groups
=
[
tree_name
]
def
link_text_block
(
reference_blend_path
,
block_name
):
def
link_text_block
(
reference_blend_path
,
block_name
):
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать