diff options
Diffstat (limited to 'io_mesh_stl/__init__.py')
-rw-r--r-- | io_mesh_stl/__init__.py | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/io_mesh_stl/__init__.py b/io_mesh_stl/__init__.py index a96f1a75..22b5dbd3 100644 --- a/io_mesh_stl/__init__.py +++ b/io_mesh_stl/__init__.py @@ -46,6 +46,14 @@ Import: - Does not handle endien """ +if "bpy" in locals(): + import imp + imp.reload(stl_utils) + imp.reload(blender_utils) +else: + from . import stl_utils + from . import blender_utils + import itertools import os @@ -54,18 +62,6 @@ from bpy.props import * from io_utils import ExportHelper, ImportHelper -try: - init_data - - reload(stl_utils) - reload(blender_utils) -except: - from io_mesh_stl import stl_utils - from io_mesh_stl import blender_utils - -init_data = True - - class StlImporter(bpy.types.Operator, ImportHelper): ''' Load STL triangle mesh data |