-
Notifications
You must be signed in to change notification settings - Fork 30
/
__init__.py
48 lines (39 loc) · 1.37 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
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 6 13:38:47 2019
@author: AsteriskAmpersand
"""
#from .dbg import dbg_init
#dbg_init()
bl_info = {
"name": "MHW Mod3 Model Importer",
"category": "Import-Export",
"author": "AsteriskAmpersand (Code) & CrazyT (Structure)",
"location": "File > Import-Export > Mod3/MHW",
"version": (2,1,0)
}
import bpy
from .operators.mod3properties import symmetricPair
from .operators.mod3import import ImportMOD3
from .operators.mod3export import ExportMOD3
from .operators.mod3import import menu_func_import as mhw_model_menu_func_import
from .operators.mod3export import menu_func_export as mhw_model_menu_func_export
def register():
bpy.utils.register_class(ImportMOD3)
bpy.utils.register_class(ExportMOD3)
bpy.types.INFO_MT_file_import.append(mhw_model_menu_func_import)
bpy.types.INFO_MT_file_export.append(mhw_model_menu_func_export)
bpy.types.Object.MHW_Symmetric_Pair = symmetricPair
def unregister():
del bpy.types.Object.MHW_Symmetric_Pair
bpy.utils.unregister_class(ImportMOD3)
bpy.utils.unregister_class(ExportMOD3)
bpy.types.INFO_MT_file_import.remove(mhw_model_menu_func_import)
bpy.types.INFO_MT_file_export.remove(mhw_model_menu_func_export)
#del bpy.types.Object.MHWSkeleton
if __name__ == "__main__":
try:
unregister()
except:
pass
register()