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>2009-05-24 16:37:55 +0400
committerThomas Dinges <blender@dingto.org>2009-05-24 16:37:55 +0400
commitef01c5bf0abda3893b3a7f075a3ab20f164d5081 (patch)
tree0e9f69618ca5f89572edf0199149c2cec845a96e /release/ui/buttons_data_armature.py
parent3956a10deb575114713462dbb00bf48dd1451497 (diff)
2.5 Buttons Code:
* Code Cleanup. * Tiny layout changes. * Added proper context for bone, curve, mesh and text objects. * Fixed Sun/Sky context.
Diffstat (limited to 'release/ui/buttons_data_armature.py')
-rw-r--r--release/ui/buttons_data_armature.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/release/ui/buttons_data_armature.py b/release/ui/buttons_data_armature.py
index 2982ad52a6d..1d0043a5179 100644
--- a/release/ui/buttons_data_armature.py
+++ b/release/ui/buttons_data_armature.py
@@ -1,3 +1,4 @@
+
import bpy
class DataButtonsPanel(bpy.types.Panel):
@@ -17,13 +18,11 @@ class DATA_PT_skeleton(DataButtonsPanel):
arm = context.active_object.data
layout = self.layout
- row = layout.row()
- row.itemR(arm, "rest_position")
+ layout.itemR(arm, "rest_position")
split = layout.split()
sub = split.column()
-
sub.itemL(text="Deform:")
sub.itemR(arm, "deform_vertexgroups", text="Vertes Groups")
sub.itemR(arm, "deform_envelope", text="Envelopes")
@@ -38,7 +37,6 @@ class DATA_PT_skeleton(DataButtonsPanel):
#sub.itemR(arm, "layer")
#sub.itemR(arm, "layer_protection")
-
class DATA_PT_display(DataButtonsPanel):
__idname__ = "DATA_PT_display"
__label__ = "Display"
@@ -59,7 +57,6 @@ class DATA_PT_display(DataButtonsPanel):
sub.itemR(arm, "draw_custom_bone_shapes", text="Shapes")
sub.itemR(arm, "draw_group_colors", text="Colors")
-
class DATA_PT_paths(DataButtonsPanel):
__idname__ = "DATA_PT_paths"
__label__ = "Paths"
@@ -71,11 +68,10 @@ class DATA_PT_paths(DataButtonsPanel):
split = layout.split()
sub = split.column()
-
sub.itemR(arm, "paths_show_around_current_frame", text="Around Frame")
if (arm.paths_show_around_current_frame):
- sub.itemR(arm, "path_before_current", text="Before")
- sub.itemR(arm, "path_after_current", text="After")
+ sub.itemR(arm, "path_before_current", text="Before")
+ sub.itemR(arm, "path_after_current", text="After")
else:
sub.itemR(arm, "path_start_frame", text="Start")
sub.itemR(arm, "path_end_frame", text="End")
@@ -89,7 +85,6 @@ class DATA_PT_paths(DataButtonsPanel):
sub.itemR(arm, "paths_highlight_keyframes", text="Keyframes")
sub.itemR(arm, "paths_show_keyframe_numbers", text="Keyframe Numbers")
-
class DATA_PT_ghost(DataButtonsPanel):
__idname__ = "DATA_PT_ghost"
__label__ = "Ghost"
@@ -101,7 +96,6 @@ class DATA_PT_ghost(DataButtonsPanel):
split = layout.split()
sub = split.column()
-
sub.itemR(arm, "ghost_type", text="Scope")
if arm.ghost_type == 'RANGE':
sub.itemR(arm, "ghost_start_frame", text="Start")
@@ -112,10 +106,9 @@ class DATA_PT_ghost(DataButtonsPanel):
sub.itemR(arm, "ghost_size", text="Step")
sub = split.column()
-
sub.itemR(arm, "ghost_only_selected", text="Selected Only")
bpy.types.register(DATA_PT_skeleton)
bpy.types.register(DATA_PT_display)
bpy.types.register(DATA_PT_paths)
-bpy.types.register(DATA_PT_ghost)
+bpy.types.register(DATA_PT_ghost) \ No newline at end of file