Skip to content

Commit

Permalink
align=True for s3o tools panel buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisFloofyKitsune committed May 15, 2024
1 parent ad6c33e commit 2674531
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions view_3d_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def panel_add(self, layout: UILayout, _: Context):
(header, body) = layout.panel('s3o_add')
header.label(text="Add")
if body is not None:
col: bpy.types.UILayout = body.column()
col: bpy.types.UILayout = body.column(align=True)
col.operator('s3o_tools.add_s3o_root', icon='EMPTY_ARROWS')
col.operator('s3o_tools.add_s3o_aim_point', icon='EMPTY_SINGLE_ARROW')
row = col.row()
Expand All @@ -42,7 +42,7 @@ def panel_import_export(self, layout: UILayout, _: Context):
(header, body) = layout.panel('s3o_import_export')
header.label(text="Import / Export")
if body is not None:
col = body.column()
col = body.column(align=True)
col.operator("s3o_tools.import_textures", icon='TEXTURE')
col.operator("s3o_tools.import_s3o", text="Import *.s3o", icon='IMPORT')
col.operator("s3o_tools.export_s3o", text="Export *.s3o", icon='EXPORT')
Expand All @@ -51,7 +51,7 @@ def panel_util(self, layout: UILayout, _: Context):
(header, body) = layout.panel('s3o_import_util')
header.label(text="Utilities")
if body is not None:
col = body.column()
col = body.column(align=True)
col.operator_menu_enum("s3o_tools.set_all_rotation_modes", 'mode', icon='ORIENTATION_GIMBAL')
col.operator("s3o_tools.s3oify_object_hierarchy", icon='SHADERFX')

Expand Down

0 comments on commit 2674531

Please sign in to comment.