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:
authorBastien Montagne <montagne29@wanadoo.fr>2014-04-17 16:50:06 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-04-17 16:51:39 +0400
commit419f7750db68c4545a9fbb9740ee5aca07b291e5 (patch)
treeec232eb38a28345ea7ba9832af97caafdf8706fc
parentd0e80b50e92d6c4099f7c4839cf587199d01498c (diff)
Fix T39771: Armature Tools and Options Panel appears in other TABs.
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 2e130a85aae..f938f30cd35 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -613,19 +613,28 @@ class VIEW3D_PT_tools_textedit(View3DPanel, Panel):
# ********** default tools for editmode_armature ****************
-class VIEW3D_PT_tools_armatureedit(View3DPanel, Panel):
+class VIEW3D_PT_tools_armatureedit_transform(View3DPanel, Panel):
+ bl_category = "Tools"
bl_context = "armature_edit"
- bl_label = "Armature Tools"
+ bl_label = "Transform"
def draw(self, context):
layout = self.layout
col = layout.column(align=True)
- col.label(text="Transform:")
col.operator("transform.translate")
col.operator("transform.rotate")
col.operator("transform.resize", text="Scale")
+
+class VIEW3D_PT_tools_armatureedit(View3DPanel, Panel):
+ bl_category = "Tools"
+ bl_context = "armature_edit"
+ bl_label = "Armature Tools"
+
+ def draw(self, context):
+ layout = self.layout
+
col = layout.column(align=True)
col.label(text="Bones:")
col.operator("armature.bone_primitive_add", text="Add")
@@ -645,6 +654,7 @@ class VIEW3D_PT_tools_armatureedit(View3DPanel, Panel):
class VIEW3D_PT_tools_armatureedit_options(View3DPanel, Panel):
+ bl_category = "Options"
bl_context = "armature_edit"
bl_label = "Armature Options"
@@ -653,6 +663,7 @@ class VIEW3D_PT_tools_armatureedit_options(View3DPanel, Panel):
self.layout.prop(arm, "use_mirror_x")
+
# ********** default tools for editmode_mball ****************