-
Notifications
You must be signed in to change notification settings - Fork 6
/
__init__.py
48 lines (35 loc) · 1.28 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
# <pep8-80 compliant>
"""__init__"""
import bpy
from .preferences import RizomUVBridgeAddonPreferences
from .operators.file_operations import ExportToRizom, ImportFromRizom
from .ui.bridge_panel import RizomUVPanel, RizomUVSettingsPanel,\
RizomUVPanelProperties
bl_info = { # pylint: disable=invalid-name
"name": "RizomUV Bridge",
"description": "Streamlined workflow between Blender and RizomUV.",
"author": "MattA",
"version": (0, 2, 0),
"blender": (2, 80, 0),
"location": "View3D > Sidebar",
"wiki_url": "https://mattashpole.github.io/BlenderRizomUVBridge/",
"tracker_url": "https://github.com/MattAshpole/BlenderRizomUVBridge/issues",
"category": "UV"
}
CLASSES = [RizomUVBridgeAddonPreferences,
ExportToRizom,
ImportFromRizom,
RizomUVPanelProperties,
RizomUVPanel,
RizomUVSettingsPanel]
def register():
"""register operators and menus"""
for cls in CLASSES:
bpy.utils.register_class(cls)
bpy.types.WindowManager.RizomUVPanelProperties = bpy.props.PointerProperty(
type=RizomUVPanelProperties)
def unregister():
"""unregister operators and menus"""
del bpy.types.WindowManager.RizomUVPanelProperties
for cls in CLASSES:
bpy.utils.unregister_class(cls)