Коммит 83bba7b4 создал по автору Dealga McArdle's avatar Dealga McArdle
Просмотр файлов

maybe raising a namerror

владелец 78c29569
...@@ -67,22 +67,26 @@ if __name__ != "sverchok": ...@@ -67,22 +67,26 @@ if __name__ != "sverchok":
sys.modules["sverchok"] = sys.modules[__name__] sys.modules["sverchok"] = sys.modules[__name__]
from sverchok.core import sv_registration_utils, init_architecture, make_node_list from sverchok.core import sv_registration_utils, init_architecture, make_node_list
from sverchok.core import reload_event, handle_reload_event from sverchok.core import interupted_activation_detected, reload_event, handle_reload_event
from sverchok.utils import utils_modules from sverchok.utils import utils_modules
from sverchok.ui import ui_modules from sverchok.ui import ui_modules
from sverchok.utils.profile import profiling_startup from sverchok.utils.profile import profiling_startup
imported_modules = init_architecture(__name__, utils_modules, ui_modules) imported_modules = init_architecture(__name__, utils_modules, ui_modules)
node_list = make_node_list(nodes)
if "bpy" in locals(): if "nodes" not in locals():
reload_event = True raise interupted_activation_detected()
node_list = handle_reload_event(nodes, imported_modules) else:
node_list = make_node_list(nodes)
import bpy if "bpy" in locals():
import sverchok reload_event = True
node_list = handle_reload_event(nodes, imported_modules)
import bpy
import sverchok
def register(): def register():
with profiling_startup(): with profiling_startup():
......
...@@ -112,6 +112,13 @@ def init_bookkeeping(sv_name): ...@@ -112,6 +112,13 @@ def init_bookkeeping(sv_name):
auto_gather_node_classes() auto_gather_node_classes()
activation_message = """\n
** Sverchok needs a couple of seconds to become activated when you enable it for the first time. **
** Please restart Blender and enable it by pressing the tick box only once -- be patient! **
"""
def interupted_activation_detected():
return NameError(activation_message)
undo_handler_node_count = {} undo_handler_node_count = {}
undo_handler_node_count['sv_groups'] = 0 undo_handler_node_count['sv_groups'] = 0
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать