[Bf-blender-cvs] [419f775] master: Fix T39771: Armature Tools and Options Panel appears in other TABs.

Bastien Montagne noreply at git.blender.org
Thu Apr 17 14:52:46 CEST 2014


Commit: 419f7750db68c4545a9fbb9740ee5aca07b291e5
Author: Bastien Montagne
Date:   Thu Apr 17 14:50:06 2014 +0200
https://developer.blender.org/rB419f7750db68c4545a9fbb9740ee5aca07b291e5

Fix T39771: Armature Tools and Options Panel appears in other TABs.

===================================================================

M	release/scripts/startup/bl_ui/space_view3d_toolbar.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 2e130a8..f938f30 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 ****************




More information about the Bf-blender-cvs mailing list