[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3768] branches/protopipe/modelbuilder. py: Fixed registration matrix (inverted)
Aurel W
aurel.w at gmail.com
Wed Sep 19 11:58:56 CEST 2012
Revision: 3768
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3768
Author: aurel
Date: 2012-09-19 09:58:55 +0000 (Wed, 19 Sep 2012)
Log Message:
-----------
Fixed registration matrix (inverted)
Modified Paths:
--------------
branches/protopipe/modelbuilder.py
Modified: branches/protopipe/modelbuilder.py
===================================================================
--- branches/protopipe/modelbuilder.py 2012-09-19 07:46:40 UTC (rev 3767)
+++ branches/protopipe/modelbuilder.py 2012-09-19 09:58:55 UTC (rev 3768)
@@ -60,6 +60,7 @@
nobj.location = co
# rotate (convert to blender matrix)
bmat = mathutils.Matrix(rot_mat.tolist())
+ bmat.invert()
nobj.rotation_euler = bmat.to_euler()
# set the name
nobj.name = self.nextJointName()
More information about the Bf-extensions-cvs
mailing list