diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-10 21:28:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-10 21:28:53 +0400 |
commit | 8012053e1e178c8cabb133e05dc1e36d52908fa7 (patch) | |
tree | fd3f79b7e8cd9ee165ff2ece9a1ef9d2cf7ca058 /io_import_scene_dxf.py | |
parent | 0507e7a5b8dd558e12c906dd398a6e0bd7f76911 (diff) |
cleanup
- remove unused imports
- remove/comment unused vars
- fix for some bugs with unused vars being used
Diffstat (limited to 'io_import_scene_dxf.py')
-rw-r--r-- | io_import_scene_dxf.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/io_import_scene_dxf.py b/io_import_scene_dxf.py index 96344ea2..6aab7122 100644 --- a/io_import_scene_dxf.py +++ b/io_import_scene_dxf.py @@ -89,7 +89,6 @@ import codecs import math from math import sin, cos, radians import bpy -import mathutils from mathutils import Vector, Matrix # @@ -271,7 +270,7 @@ class CArc(CEntity): start, end = self.start_angle, self.end_angle if end > 360: end = end % 360.0 if end < start: end +=360.0 - angle = end - start + # angle = end - start # UNUSED deg2rad = math.pi/180.0 start *= deg2rad @@ -964,8 +963,9 @@ class CPoint(CEntity): def draw(self): #todo # draw as empty-object - loc = self.point + # loc = self.point # UNUSED #bpy.ops.object.new('DXFpoint') + pass # # class CPolyLine(CEntity): @@ -2393,7 +2393,7 @@ def readAndBuildDxfFile(filepath): if 0: # how to switch to the new scene?? (migius) new_scn = bpy.data.scenes.new(shortName[-20:]) #new_scn.layers = (1<<20) -1 - new_scn_name = new_scn.name + #new_scn_name = new_scn.name # UNUSED bpy.data.screens.scene = new_scn #print("newScene: %s" % (new_scn)) sections = readDxfFile(fileName) |