Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2011-03-04 22:57:05 +0300
committerThomas Dinges <blender@dingto.org>2011-03-04 22:57:05 +0300
commit6288eb2ef7e461fcd9102a0309c23895515fc91a (patch)
tree7c1e6f724e05be5319102c3d77de886cf56ae4b2 /release/scripts/ui
parent882514d28f074b37c1c7690a58c6979fcde56c45 (diff)
2.5 Armature Panel UI Script:
* Code cleanup, no layout changes.
Diffstat (limited to 'release/scripts/ui')
-rw-r--r--release/scripts/ui/properties_data_armature.py63
1 files changed, 24 insertions, 39 deletions
diff --git a/release/scripts/ui/properties_data_armature.py b/release/scripts/ui/properties_data_armature.py
index 6d5e09a5fab..55bc0cdb32f 100644
--- a/release/scripts/ui/properties_data_armature.py
+++ b/release/scripts/ui/properties_data_armature.py
@@ -58,24 +58,17 @@ class DATA_PT_skeleton(ArmatureButtonsPanel, bpy.types.Panel):
layout.prop(arm, "pose_position", expand=True)
- split = layout.split()
-
- col = split.column()
+ col = layout.column()
col.label(text="Layers:")
col.prop(arm, "layers", text="")
col.label(text="Protected Layers:")
col.prop(arm, "layers_protected", text="")
- col.label(text="Deform:")
-
- split = layout.split()
-
- col = split.column()
- col.prop(arm, "use_deform_vertex_groups", text="Vertex Groups")
- col.prop(arm, "use_deform_envelopes", text="Envelopes")
-
- col = split.column()
- col.prop(arm, "use_deform_preserve_volume", text="Quaternion")
+ layout.label(text="Deform:")
+ flow = layout.column_flow()
+ flow.prop(arm, "use_deform_vertex_groups", text="Vertex Groups")
+ flow.prop(arm, "use_deform_envelopes", text="Envelopes")
+ flow.prop(arm, "use_deform_preserve_volume", text="Quaternion")
class DATA_PT_display(ArmatureButtonsPanel, bpy.types.Panel):
@@ -87,7 +80,7 @@ class DATA_PT_display(ArmatureButtonsPanel, bpy.types.Panel):
ob = context.object
arm = context.armature
- layout.row().prop(arm, "draw_type", expand=True)
+ layout.prop(arm, "draw_type", expand=True)
split = layout.split()
@@ -137,10 +130,10 @@ class DATA_PT_bone_groups(ArmatureButtonsPanel, bpy.types.Panel):
col.prop(group, "color_set")
if group.color_set:
col = split.column()
- subrow = col.row(align=True)
- subrow.prop(group.colors, "normal", text="")
- subrow.prop(group.colors, "select", text="")
- subrow.prop(group.colors, "active", text="")
+ sub = col.row(align=True)
+ sub.prop(group.colors, "normal", text="")
+ sub.prop(group.colors, "select", text="")
+ sub.prop(group.colors, "active", text="")
row = layout.row()
row.active = (ob.proxy is None)
@@ -168,8 +161,7 @@ class DATA_PT_pose_library(ArmatureButtonsPanel, bpy.types.Panel):
ob = context.object
poselib = ob.pose_library
- row = layout.row()
- row.template_ID(ob, "pose_library", new="poselib.new", unlink="poselib.unlink")
+ layout.template_ID(ob, "pose_library", new="poselib.new", unlink="poselib.unlink")
if poselib:
row = layout.row()
@@ -190,8 +182,7 @@ class DATA_PT_pose_library(ArmatureButtonsPanel, bpy.types.Panel):
col.operator("poselib.pose_remove", icon='ZOOMOUT', text="").pose = pose_marker_active.name
col.operator("poselib.apply_pose", icon='ZOOM_SELECTED', text="").pose_index = poselib.pose_markers.active_index
- row = layout.row()
- row.operator("poselib.action_sanitise")
+ layout.operator("poselib.action_sanitise")
# TODO: this panel will soon be depreceated too
@@ -207,16 +198,15 @@ class DATA_PT_ghost(ArmatureButtonsPanel, bpy.types.Panel):
split = layout.split()
- col = split.column()
+ col = split.column(align=True)
- sub = col.column(align=True)
if arm.ghost_type == 'RANGE':
- sub.prop(arm, "ghost_frame_start", text="Start")
- sub.prop(arm, "ghost_frame_end", text="End")
- sub.prop(arm, "ghost_size", text="Step")
+ col.prop(arm, "ghost_frame_start", text="Start")
+ col.prop(arm, "ghost_frame_end", text="End")
+ col.prop(arm, "ghost_size", text="Step")
elif arm.ghost_type == 'CURRENT_FRAME':
- sub.prop(arm, "ghost_step", text="Range")
- sub.prop(arm, "ghost_size", text="Step")
+ col.prop(arm, "ghost_step", text="Range")
+ col.prop(arm, "ghost_size", text="Step")
col = split.column()
col.label(text="Display:")
@@ -236,11 +226,9 @@ class DATA_PT_iksolver_itasc(ArmatureButtonsPanel, bpy.types.Panel):
layout = self.layout
ob = context.object
-
itasc = ob.pose.ik_param
- row = layout.row()
- row.prop(ob.pose, "ik_solver")
+ layout.prop(ob.pose, "ik_solver")
if itasc:
layout.prop(itasc, "mode", expand=True)
@@ -249,13 +237,10 @@ class DATA_PT_iksolver_itasc(ArmatureButtonsPanel, bpy.types.Panel):
layout.label(text="Reiteration:")
layout.prop(itasc, "reiteration_method", expand=True)
- split = layout.split()
- split.active = not simulation or itasc.reiteration_method != 'NEVER'
- col = split.column()
- col.prop(itasc, "precision")
-
- col = split.column()
- col.prop(itasc, "iterations")
+ row = layout.row()
+ row.active = not simulation or itasc.reiteration_method != 'NEVER'
+ row.prop(itasc, "precision")
+ row.prop(itasc, "iterations")
if simulation:
layout.prop(itasc, "use_auto_step")