From 2274f58ef2e39fc4eb4ccbf19d1e1d496cd9adeb Mon Sep 17 00:00:00 2001 From: Nika Kutsniashvili Date: Mon, 5 Feb 2024 14:34:14 +0100 Subject: [PATCH] UI: Remove empty space in Custom Properties panel Remove empty space in Custom Properties panel, and align buttons in a row. Pull Request: https://projects.blender.org/blender/blender/pulls/115913 --- scripts/modules/rna_prop_ui.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/modules/rna_prop_ui.py b/scripts/modules/rna_prop_ui.py index 7b06fcaeb40..5811158bf39 100644 --- a/scripts/modules/rna_prop_ui.py +++ b/scripts/modules/rna_prop_ui.py @@ -221,7 +221,7 @@ def draw(layout, context, context_member, property_type, *, use_edit=True): else: value_column.prop(rna_item, rna_idprop_quote_path(key), text="") - operator_row = value_row.row() + operator_row = value_row.row(align=True) operator_row.alignment = 'RIGHT' # Do not allow editing of overridden properties (we cannot use a poll function @@ -241,9 +241,6 @@ def draw(layout, context, context_member, property_type, *, use_edit=True): props = operator_row.operator("wm.properties_remove", text="", icon='X', emboss=False) props.data_path = context_member props.property_name = key - else: - # Add some spacing, so the right side of the buttons line up with layouts with decorators. - operator_row.label(text="", icon='BLANK1') class PropertyPanel: