[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14215] trunk/blender/release/scripts/ scripttemplate_pyconstraint.py: Bugfix #8710:
Joshua Leung
aligorith at gmail.com
Sun Mar 23 03:28:29 CET 2008
Revision: 14215
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14215
Author: aligorith
Date: 2008-03-23 03:28:24 +0100 (Sun, 23 Mar 2008)
Log Message:
-----------
Bugfix #8710:
Typo fix in PyConstraint template
Modified Paths:
--------------
trunk/blender/release/scripts/scripttemplate_pyconstraint.py
Modified: trunk/blender/release/scripts/scripttemplate_pyconstraint.py
===================================================================
--- trunk/blender/release/scripts/scripttemplate_pyconstraint.py 2008-03-22 22:08:46 UTC (rev 14214)
+++ trunk/blender/release/scripts/scripttemplate_pyconstraint.py 2008-03-23 02:28:24 UTC (rev 14215)
@@ -36,13 +36,13 @@
constraint instance's idproperties
'''
def doConstraint(obmatrix, targetmatrices, idprop):
- # Separate out the tranformation components for easy access.
+ # Separate out the transformation components for easy access.
obloc = obmatrix.translationPart() # Translation
obrot = obmatrix.toEuler() # Rotation
obsca = obmatrix.scalePart() # Scale
- # Define user-settable parameters.\
- # Must also be defined in getSettings().
+ # Define user-settable parameters
+ # Must also be defined in getSettings().
if not idprop.has_key('user_toggle'): idprop['user_toggle'] = 1
if not idprop.has_key('user_slider'): idprop['user_slider'] = 1.0
@@ -51,7 +51,7 @@
# Convert back into a matrix for loc, scale, rotation,
- mtxloc = Mathutils.TranslationMatrix( obloc )
+ mtxloc = Mathutils.TranslationMatrix(obloc)
mtxrot = obrot.toMatrix().resize4x4()
mtxsca = Mathutils.Matrix([obsca[0],0,0,0], [0,obsca[1],0,0], [0,0,obsca[2],0], [0,0,0,1])
More information about the Bf-blender-cvs
mailing list