diff options
Diffstat (limited to 'io_scene_map')
-rw-r--r-- | io_scene_map/__init__.py | 8 | ||||
-rw-r--r-- | io_scene_map/export_map.py | 3 |
2 files changed, 5 insertions, 6 deletions
diff --git a/io_scene_map/__init__.py b/io_scene_map/__init__.py index 8db02a7f..d3295998 100644 --- a/io_scene_map/__init__.py +++ b/io_scene_map/__init__.py @@ -40,8 +40,8 @@ if "bpy" in locals(): import bpy -from bpy.props import StringProperty, BoolProperty, FloatProperty, EnumProperty -from bpy_extras.io_utils import ExportHelper, axis_conversion +from bpy.props import StringProperty +from bpy_extras.io_utils import ExportHelper class ExportMAP(bpy.types.Operator, ExportHelper): @@ -54,8 +54,8 @@ class ExportMAP(bpy.types.Operator, ExportHelper): filter_glob = StringProperty(default="*.map", options={'HIDDEN'}) def execute(self, context): - import math - from mathutils import Matrix + # import math + # from mathutils import Matrix if not self.filepath: raise Exception("filepath not set") diff --git a/io_scene_map/export_map.py b/io_scene_map/export_map.py index 512e93c7..0ed01c8d 100644 --- a/io_scene_map/export_map.py +++ b/io_scene_map/export_map.py @@ -51,7 +51,6 @@ def write_cube2brush(file, faces): these faces can be from 1 mesh, 1 cube within a mesh of larger cubes Faces could even come from different meshes or be contrived. ''' - import os # comment only # file.write('// brush "%s", "%s"\n' % (ob.name, ob.data.name)) file.write('// brush from cube\n{\n') @@ -284,7 +283,7 @@ def export_map(context, filepath): return """ import time - from mathutils import Vector, Matrix + from mathutils import Matrix from bpy_extras import mesh_utils t = time.time() |