[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2825] trunk/py/scripts/addons/ space_view3d_math_vis/utils.py: update for chanes in the python api

Campbell Barton ideasman42 at gmail.com
Fri Dec 30 07:44:52 CET 2011


Revision: 2825
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2825
Author:   campbellbarton
Date:     2011-12-30 06:44:51 +0000 (Fri, 30 Dec 2011)
Log Message:
-----------
update for chanes in the python api

Modified Paths:
--------------
    trunk/py/scripts/addons/space_view3d_math_vis/utils.py

Modified: trunk/py/scripts/addons/space_view3d_math_vis/utils.py
===================================================================
--- trunk/py/scripts/addons/space_view3d_math_vis/utils.py	2011-12-30 06:06:32 UTC (rev 2824)
+++ trunk/py/scripts/addons/space_view3d_math_vis/utils.py	2011-12-30 06:44:51 UTC (rev 2825)
@@ -41,8 +41,8 @@
         var_type = type(var)
 
         if var_type is Matrix:
-            if var.col_size != 4 or var.row_size != 4:
-                if var.row_size == var.col_size:
+            if len(var.col) != 4 or len(var.row) != 4:
+                if len(var.col) == len(var.row):
                     var = var.to_4x4() 
                 else:  # todo, support 4x3 matrix
                     continue



More information about the Bf-extensions-cvs mailing list