[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38996] branches/soc-2011-pepper/release/ scripts/modules/mocap_constraints.py: Fixed coding style to conform to pep8
Benjy Cook
benjycook at hotmail.com
Wed Aug 3 20:13:44 CEST 2011
Revision: 38996
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38996
Author: benjycook
Date: 2011-08-03 18:13:44 +0000 (Wed, 03 Aug 2011)
Log Message:
-----------
Fixed coding style to conform to pep8
Modified Paths:
--------------
branches/soc-2011-pepper/release/scripts/modules/mocap_constraints.py
Modified: branches/soc-2011-pepper/release/scripts/modules/mocap_constraints.py
===================================================================
--- branches/soc-2011-pepper/release/scripts/modules/mocap_constraints.py 2011-08-03 17:58:06 UTC (rev 38995)
+++ branches/soc-2011-pepper/release/scripts/modules/mocap_constraints.py 2011-08-03 18:13:44 UTC (rev 38996)
@@ -195,7 +195,7 @@
e += s_out
#Set the blender constraint parameters
if m_constraint.type == "point":
- constraint_settings = False # are fix settings keyframed?
+ constraint_settings = False # are fix settings keyframed?
if not m_constraint.targetSpace == "constrained_boneB":
real_constraint.owner_space = m_constraint.targetSpace
else:
@@ -223,7 +223,7 @@
for t in range(s, e):
context.scene.frame_set(t)
src_bone_pos = src_bone.matrix.to_translation()
- bakedPos[t] = src_bone_pos + m_constraint.targetPoint # final position for constrained bone in object space
+ bakedPos[t] = src_bone_pos + m_constraint.targetPoint # final position for constrained bone in object space
context.scene.frame_set(c_frame)
for frame in bakedPos.keys():
pos = bakedPos[frame]
@@ -233,7 +233,7 @@
yCurve.keyframe_points.insert(frame=frame, value=pos.y)
for zCurve in zCurves:
zCurve.keyframe_points.insert(frame=frame, value=pos.z)
-
+
if not constraint_settings:
x, y, z = m_constraint.targetPoint
real_constraint.max_x = x
More information about the Bf-blender-cvs
mailing list