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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-06-19 18:56:49 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-06-19 18:56:49 +0400
commit6c139156cf2b47ea9d8e7606204205cb01d4ad21 (patch)
tree7cd43541d4d0b2e67f64d7c105fdb1036f9faeac /release
parent42e60acce669a425a3ce3a588a2bd649cd6963eb (diff)
RNA:
* EditBone wrapped, using manual get/set function, and used in the UI code. Makes the RNA wrapping code here more complicated, but works.
Diffstat (limited to 'release')
-rw-r--r--release/datafiles/blenderbuttonsbin177005 -> 175808 bytes
-rw-r--r--release/ui/buttons_data_bone.py9
2 files changed, 5 insertions, 4 deletions
diff --git a/release/datafiles/blenderbuttons b/release/datafiles/blenderbuttons
index 467e79f024a..963c76fcfa9 100644
--- a/release/datafiles/blenderbuttons
+++ b/release/datafiles/blenderbuttons
Binary files differ
diff --git a/release/ui/buttons_data_bone.py b/release/ui/buttons_data_bone.py
index 2abe76b93c1..044f7b93806 100644
--- a/release/ui/buttons_data_bone.py
+++ b/release/ui/buttons_data_bone.py
@@ -7,7 +7,7 @@ class BoneButtonsPanel(bpy.types.Panel):
__context__ = "bone"
def poll(self, context):
- return (context.bone != None)
+ return (context.bone or context.edit_bone)
class BONE_PT_bone(BoneButtonsPanel):
__idname__ = "BONE_PT_bone"
@@ -16,6 +16,8 @@ class BONE_PT_bone(BoneButtonsPanel):
def draw(self, context):
layout = self.layout
bone = context.bone
+ if not bone:
+ bone = context.edit_bone
split = layout.split()
@@ -40,8 +42,7 @@ class BONE_PT_bone(BoneButtonsPanel):
sub.itemL(text="Display:")
sub.itemR(bone, "draw_wire", text="Wireframe")
- sub.itemR(bone, "editmode_hidden", text="Hide (EditMode)")
- sub.itemR(bone, "pose_channel_hidden", text="Hide (PoseMode)")
+ sub.itemR(bone, "hidden", text="Hide")
sub.itemL(text="Curved Bones:")
sub.itemR(bone, "bbone_segments", text="Segments")
@@ -50,4 +51,4 @@ class BONE_PT_bone(BoneButtonsPanel):
sub.itemR(bone, "cyclic_offset")
-bpy.types.register(BONE_PT_bone) \ No newline at end of file
+bpy.types.register(BONE_PT_bone)