From 267453154e9e340557cb8b14ded7837d64aefba8 Mon Sep 17 00:00:00 2001 From: ChrisFloofyKitsune Date: Tue, 14 May 2024 21:39:05 -0600 Subject: [PATCH] align=True for s3o tools panel buttons --- view_3d_panel.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/view_3d_panel.py b/view_3d_panel.py index 603cb27..5c740c0 100644 --- a/view_3d_panel.py +++ b/view_3d_panel.py @@ -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() @@ -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') @@ -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')