Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-07-11 02:57:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-11 02:57:27 +0400
commit488e1da935d55330be55eb30b4605b993dd65dbd (patch)
treed4437d5e74e962482a4a6aa5336212c257f0245e /io_scene_map
parent8012053e1e178c8cabb133e05dc1e36d52908fa7 (diff)
cleanup
- remove/comment unused variables - remove unused imports - fixed some bugs using incorrect variables
Diffstat (limited to 'io_scene_map')
-rw-r--r--io_scene_map/__init__.py8
-rw-r--r--io_scene_map/export_map.py3
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()