[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2229] contrib/py/scripts/addons/ curve_tools.py: update for matrix multiply changes & bl_version info

Brendon Murphy meta.androcto1 at gmail.com
Sun Aug 7 15:30:43 CEST 2011


Revision: 2229
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2229
Author:   meta-androcto
Date:     2011-08-07 13:30:42 +0000 (Sun, 07 Aug 2011)
Log Message:
-----------
update for matrix multiply changes & bl_version info

Modified Paths:
--------------
    contrib/py/scripts/addons/curve_tools.py

Modified: contrib/py/scripts/addons/curve_tools.py
===================================================================
--- contrib/py/scripts/addons/curve_tools.py	2011-08-07 11:56:13 UTC (rev 2228)
+++ contrib/py/scripts/addons/curve_tools.py	2011-08-07 13:30:42 UTC (rev 2229)
@@ -20,8 +20,8 @@
 	"name": "Curve Tools",
 	"author": "Zak",
 	"version": (0, 1, 5),
-	"blender": (2, 5, 8),
-	"api": 37702,
+	"blender": (2, 5, 9),
+	"api": 39104,
 	"location": "Properties > Object data",
 	"description": "Creates driven Lofts or Birails between curves",
 	"warning": "",
@@ -178,10 +178,10 @@
 #gets a bezier segment's control points on global coordinates
 def getbezpoints(spl, mt, seg=0):
 	points = spl.bezier_points
-	p0 = points[seg].co * mt
-	p1 = points[seg].handle_right * mt
-	p2 = points[seg+1].handle_left * mt
-	p3 = points[seg+1].co * mt	
+	p0 = mt * points[seg].co
+	p1 = mt * points[seg].handle_right
+	p2 = mt * points[seg+1].handle_left
+	p3 = mt * points[seg+1].co
 	return p0, p1, p2, p3
 
 #gets nurbs polygon control points on global coordinates



More information about the Bf-extensions-cvs mailing list