diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-09 18:00:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-09 18:00:50 +0300 |
commit | ac2bcc359621e588dd14e4a83fa050f73e4c829c (patch) | |
tree | 48314d696b722436278b6f9873303781b79c2a95 /io_import_scene_dxf.py | |
parent | 7fb70a4041ef1152eb34a7506ea2b6f671e76042 (diff) |
update for changes in blender.
Diffstat (limited to 'io_import_scene_dxf.py')
-rw-r--r-- | io_import_scene_dxf.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_import_scene_dxf.py b/io_import_scene_dxf.py index 6331d13a..e3a4d336 100644 --- a/io_import_scene_dxf.py +++ b/io_import_scene_dxf.py @@ -1410,7 +1410,7 @@ def getOCS(az): #-------------------------------------------------------------- def transform(normal, rotation, obj): #-------------------------------------------- """Use the calculated ocs to determine the objects location/orientation in space. """ - ma = Matrix([1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]) + ma = Matrix(((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1))) o = Vector(obj.location) ma_new = getOCS(normal) if ma_new: @@ -1419,7 +1419,7 @@ def transform(normal, rotation, obj): #---------------------------------------- if rotation != 0: g = radians(-rotation) - rmat = Matrix([cos(g), -sin(g), 0], [sin(g), cos(g), 0], [0, 0, 1]) + rmat = Matrix(((cos(g), -sin(g), 0), (sin(g), cos(g), 0), (0, 0, 1))) ma = ma * rmat.resize4x4() obj.matrix_world = ma #must be matrix4x4 |