forked from bartvdbraak/blender
Fix T38883: Toolbar origin buttons missing for armature
Also allow mirror for any object type
This commit is contained in:
parent
32d5cc247f
commit
0bfd75aa14
@ -67,9 +67,6 @@ class VIEW3D_PT_tools_transform(View3DPanel, Panel):
|
||||
col.operator("transform.rotate")
|
||||
col.operator("transform.resize", text="Scale")
|
||||
|
||||
active_object = context.active_object
|
||||
if active_object and active_object.type in {'MESH', 'CURVE', 'SURFACE'}:
|
||||
|
||||
col = layout.column(align=True)
|
||||
col.operator("transform.mirror", text="Mirror")
|
||||
|
||||
@ -86,18 +83,21 @@ class VIEW3D_PT_tools_object(View3DPanel, Panel):
|
||||
col.operator("object.duplicate_move", text="Duplicate")
|
||||
col.operator("object.duplicate_move_linked", text="Duplicate Linked")
|
||||
|
||||
active_object = context.active_object
|
||||
if active_object and active_object.type in {'MESH', 'CURVE', 'SURFACE'}:
|
||||
col = layout.column(align=True)
|
||||
col.operator("object.join")
|
||||
col.operator("object.delete")
|
||||
|
||||
col = layout.column(align=True)
|
||||
if active_object and active_object.type in {'MESH', 'CURVE', 'SURFACE'}:
|
||||
obj = context.active_object
|
||||
if obj:
|
||||
obj_type = obj.type
|
||||
|
||||
if obj_type in {'MESH', 'CURVE', 'SURFACE', 'ARMATURE'}:
|
||||
col = layout.column(align=True)
|
||||
col.operator("object.origin_set", text="Set Origin")
|
||||
col.operator("object.join")
|
||||
|
||||
if obj_type in {'MESH', 'CURVE', 'SURFACE', 'ARMATURE', 'FONT', 'LATTICE'}:
|
||||
col = layout.column(align=True)
|
||||
col.operator_menu_enum("object.origin_set", "type", text="Set Origin")
|
||||
|
||||
if obj_type in {'MESH', 'CURVE', 'SURFACE'}:
|
||||
col = layout.column(align=True)
|
||||
col.label(text="Shading:")
|
||||
row = col.row(align=True)
|
||||
|
Loading…
Reference in New Issue
Block a user