Models with basic materials importing correctly

This commit is contained in:
William Herald Snyder
2020-10-30 16:59:54 -04:00
parent 1cc6a8d08d
commit b8afa1ed10
4 changed files with 171 additions and 91 deletions

View File

@@ -60,6 +60,7 @@ from .msh_scene import create_scene
from .msh_scene_save import save_scene
from .msh_scene_read import read_scene
from .msh_material_properties import *
from .msh_to_blend import *
class ExportMSH(Operator, ExportHelper):
""" Export the current scene as a SWBF .msh file. """
@@ -133,7 +134,7 @@ class ImportMSH(Operator, ImportHelper):
def execute(self, context):
with open(self.filepath, 'rb') as input_file:
read_scene(input_file)
extract_scene(read_scene(input_file))
return {'FINISHED'}
def menu_func_import(self, context):