-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy path__init__.py
42 lines (34 loc) · 1.2 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
# Support script reload for imports
if 'bpy' in locals():
import importlib
importlib.reload(panel)
importlib.reload(op_grow)
else:
from . import panel
from . import op_grow
from . import settings
import bpy
bl_info = {
'name': 'Differential Growth',
'description': 'Grow mesh into nature-inspired wavy forms',
'version': (2, 1, 1),
'author': 'Boris Okunskiy',
'tracker_url': 'https://github.com/inca/blender-differential-growth/issues',
'location': 'Properties > Object > Differential Growth',
'blender': (2, 90, 0),
'category': 'Object'
}
def register():
bpy.utils.register_class(settings.DiffGrowthSettings)
bpy.utils.register_class(op_grow.DiffGrowthStepOperator)
bpy.utils.register_class(panel.DiffGrowthPanel)
bpy.types.Object.diff_growth_settings = \
bpy.props.PointerProperty(type=settings.DiffGrowthSettings)
print('Differential Growth Registered')
def unregister():
bpy.utils.unregister_class(panel.DiffGrowthPanel)
bpy.utils.unregister_class(op_grow.DiffGrowthStepOperator)
bpy.utils.unregister_class(settings.DiffGrowthSettings)
print('Differential Growth Unregistered')
if __name__ == '__main__':
register()