-
Notifications
You must be signed in to change notification settings - Fork 233
/
__init__.py
executable file
·101 lines (85 loc) · 3.18 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# ***** BEGIN GPL LICENSE BLOCK *****
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>
# and write to the Free Software Foundation, Inc., 51 Franklin Street,
# Fifth Floor, Boston, MA 02110-1301, USA..
#
# The Original Code is Copyright (C) 2013-2014 by Gorodetskiy Nikita ###
# All rights reserved.
#
# Contact: sverchok-b3d@ya.ru ###
# Information: http://nikitron.cc.ua/sverchok_en.html ###
#
# The Original Code is: all of this file.
#
# Contributor(s):
# Nedovizin Alexander (aka Cfyzzz)
# Gorodetskiy Nikita (aka Nikitron)
# Linus Yng (aka Ly29)
# Agustin Jimenez (aka AgustinJB)
# Dealga McArdle (aka zeffii)
# Konstantin Vorobiew (aka Kosvor)
# Ilya Portnov (aka portnov)
# Eleanor Howick (aka elfnor)
# Walter Perdan (aka kalwalt)
# Marius Giurgi (aka DolphinDream)
# Victor Doval (aka vicdoval)
#
# ***** END GPL LICENSE BLOCK *****
#
# -*- coding: utf-8 -*-
bl_info = {
"name": "Sverchok",
"author": "sverchok-b3d@ya.ru various authors see https://github.com/nortikin/sverchok/graphs/contributors",
"version": (0, 6, 0, 0),
"blender": (2, 81, 0),
"location": "Node Editor",
"category": "Node",
"description": "Parametric node-based geometry programming",
"warning": "",
"wiki_url": "http://nikitron.cc.ua/sverch/html/main.html",
"tracker_url": "http://www.blenderartists.org/forum/showthread.php?272679"
}
import sys
import importlib
# pylint: disable=E0602
# pylint: disable=C0413
# pylint: disable=C0412
# make sverchok the root module name, (if sverchok dir not named exactly "sverchok")
if __name__ != "sverchok":
sys.modules["sverchok"] = sys.modules[__name__]
from sverchok.core import sv_registration_utils, init_architecture, make_node_list
from sverchok.core import reload_event, handle_reload_event
from sverchok.utils import utils_modules
from sverchok.ui import ui_modules
from sverchok.utils.profile import profiling_startup
imported_modules = init_architecture(__name__, utils_modules, ui_modules)
node_list = make_node_list(nodes)
if "bpy" in locals():
reload_event = True
node_list = handle_reload_event(nodes, imported_modules, old_nodes)
import bpy
import sverchok
def register():
with profiling_startup():
sv_registration_utils.register_all(imported_modules + node_list)
sverchok.core.init_bookkeeping(__name__)
menu.register()
if reload_event:
data_structure.RELOAD_EVENT = True
menu.reload_menu()
def unregister():
sverchok.utils.clear_node_classes()
sv_registration_utils.unregister_all(imported_modules + node_list)
# EOF