diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-03-23 05:28:24 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-03-23 05:28:24 +0300 |
commit | fa2d6c195e890a7e2f95f3939ef85c7d74657dc1 (patch) | |
tree | fbe8d5b470417aa4045105d86656d1fc038cf90a /release | |
parent | cd3cf57842ccda3f07e46f8c59c6cbced07c622a (diff) |
Bugfix #8710:
Typo fix in PyConstraint template
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/scripttemplate_pyconstraint.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/scripttemplate_pyconstraint.py b/release/scripts/scripttemplate_pyconstraint.py index 68aa9194435..0215e47a1bd 100644 --- a/release/scripts/scripttemplate_pyconstraint.py +++ b/release/scripts/scripttemplate_pyconstraint.py @@ -36,13 +36,13 @@ NUM_TARGETS = 1 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 @@ def doConstraint(obmatrix, targetmatrices, idprop): # 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]) |