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-02-05 10:08:34 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-05 10:08:34 +0300
commit696b0366f5c46dcfcb50f53b4ca4f59c593b88fb (patch)
tree8dfbeb67383adc39b5742c661f61a55eb4066659 /io_import_scene_dxf.py
parentdfd3febce161e76015beb0faac516724aceff453 (diff)
update for changes in mathutuils.
Diffstat (limited to 'io_import_scene_dxf.py')
-rw-r--r--io_import_scene_dxf.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/io_import_scene_dxf.py b/io_import_scene_dxf.py
index bb776a82..5ab94d54 100644
--- a/io_import_scene_dxf.py
+++ b/io_import_scene_dxf.py
@@ -1414,15 +1414,15 @@ def transform(normal, rotation, obj): #----------------------------------------
"""
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:
- ma = ma_new.resize4x4()
- o = o * ma #.copy().invert()
+ ma = getOCS(normal)
+ if ma:
+ ma.resize_4x4()
+ o = o * ma #.inverted()
if rotation != 0:
g = radians(-rotation)
rmat = Matrix(((cos(g), -sin(g), 0), (sin(g), cos(g), 0), (0, 0, 1)))
- ma = ma * rmat.resize4x4()
+ ma = ma * rmat.to_4x4()
obj.matrix_world = ma #must be matrix4x4
obj.location = o