[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38943] branches/soc-2011-pepper/release/ scripts/startup/ui_mocap.py: Sane defaults for post-retarget fix's framing, and ui bugfix (active icon was showing opposite of real active state)
Benjy Cook
benjycook at hotmail.com
Tue Aug 2 19:10:02 CEST 2011
Revision: 38943
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38943
Author: benjycook
Date: 2011-08-02 17:10:01 +0000 (Tue, 02 Aug 2011)
Log Message:
-----------
Sane defaults for post-retarget fix's framing, and ui bugfix (active icon was showing opposite of real active state)
Modified Paths:
--------------
branches/soc-2011-pepper/release/scripts/startup/ui_mocap.py
Modified: branches/soc-2011-pepper/release/scripts/startup/ui_mocap.py
===================================================================
--- branches/soc-2011-pepper/release/scripts/startup/ui_mocap.py 2011-08-02 17:08:49 UTC (rev 38942)
+++ branches/soc-2011-pepper/release/scripts/startup/ui_mocap.py 2011-08-02 17:10:01 UTC (rev 38943)
@@ -52,11 +52,11 @@
description="Other Constrained Bone (optional, depends on type)",
update=setConstraint)
s_frame = bpy.props.IntProperty(name="S",
- default=1,
+ default=bpy.context.scene.frame_start,
description="Start frame of Fix",
update=setConstraint)
e_frame = bpy.props.IntProperty(name="E",
- default=500,
+ default=bpy.context.scene.frame_end,
description="End frame of Fix",
update=setConstraint)
smooth_in = bpy.props.IntProperty(name="In",
@@ -264,7 +264,7 @@
headerRow.prop(m_constraint, 'show_expanded', text='', icon='TRIA_DOWN' if m_constraint.show_expanded else 'TRIA_RIGHT', emboss=False)
headerRow.prop(m_constraint, 'type', text='')
headerRow.prop(m_constraint, 'name', text='')
- headerRow.prop(m_constraint, 'active', icon='MUTE_IPO_ON' if m_constraint.active else'MUTE_IPO_OFF', text='', emboss=False)
+ headerRow.prop(m_constraint, 'active', icon='MUTE_IPO_ON' if not m_constraint.active else'MUTE_IPO_OFF', text='', emboss=False)
headerRow.operator("mocap.removeconstraint", text="", icon='X', emboss=False).constraint = i
if m_constraint.show_expanded:
box.separator()
More information about the Bf-blender-cvs
mailing list