Fix T39771: Armature Tools and Options Panel appears in other TABs.
This commit is contained in:
parent
d0e80b50e9
commit
419f7750db
Notes:
blender-bot
2023-11-20 12:14:32 +01:00
Referenced by issue #39771, Armature Tools and Options Panel appears in other TABs
|
@ -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 ****************
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue