[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1543] trunk/py/scripts/addons/ io_scene_x3d/import_x3d.py: fix for own changes in mathutils.

Campbell Barton ideasman42 at gmail.com
Sun Feb 6 09:44:07 CET 2011


Revision: 1543
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1543
Author:   campbellbarton
Date:     2011-02-06 08:44:06 +0000 (Sun, 06 Feb 2011)
Log Message:
-----------
fix for own changes in mathutils.

Modified Paths:
--------------
    trunk/py/scripts/addons/io_scene_x3d/import_x3d.py

Modified: trunk/py/scripts/addons/io_scene_x3d/import_x3d.py
===================================================================
--- trunk/py/scripts/addons/io_scene_x3d/import_x3d.py	2011-02-06 07:05:23 UTC (rev 1542)
+++ trunk/py/scripts/addons/io_scene_x3d/import_x3d.py	2011-02-06 08:44:06 UTC (rev 1543)
@@ -1509,7 +1509,7 @@
 
     if cent:
         # cent is at a corner by default
-        cent_mat = Matrix.Translation(Vector(cent).resize_3d())
+        cent_mat = Matrix.Translation(Vector(cent).to_3d())
         cent_imat = cent_mat.inverted()
     else:
         cent_mat = cent_imat = None
@@ -1525,7 +1525,7 @@
         sca_mat = None
 
     if tx:
-        tx_mat = Matrix.Translation(Vector(tx).resize_3d())
+        tx_mat = Matrix.Translation(Vector(tx).to_3d())
     else:
         tx_mat = None
 



More information about the Bf-extensions-cvs mailing list