32857326a051773ee9d5cff851a56697f44e30f9
[carveJwlIkooP6JGAAIwe30JlM.git] / skaterift_blender / __init__.py
1 import os
2 import bpy
3
4 bl_info = {
5 "name":"Skaterift .mdl exporter",
6 "author": "Harry Godden (hgn)",
7 "version": (0,2),
8 "blender":(3,1,0),
9 "location":"Export",
10 "description":"",
11 "warning":"",
12 "wiki_url":"",
13 "category":"Import/Export",
14 }
15
16 out = open( F'{os.path.dirname(__file__)}/_combined.py', 'w' )
17
18 def _include( file ):
19 #{
20 path = F'{os.path.dirname(__file__)}/{file}'
21
22 src = open( path, "r" )
23 out.write( F'\n# #include "{file}"\n\n' )
24 out.write( src.read() )
25 src.close()
26 #}
27
28 _include( "sr_main.py" )
29 _include( "sr_so.py" )
30 _include( "sr_shader.py" )
31 _include( "sr_mat.py" )
32
33 out.close()
34
35 from ._combined import *
36 import importlib
37 if 'bpy' in locals(): importlib.reload( _combined )