UI: Remove unnecessary empty spaces in Custom Properties panels #115913
@ -212,7 +212,7 @@ def draw(layout, context, context_member, property_type, *, use_edit=True):
|
|||||||
else:
|
else:
|
||||||
value_column.prop(rna_item, rna_idprop_quote_path(key), text="")
|
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'
|
operator_row.alignment = 'RIGHT'
|
||||||
|
|
||||||
# Do not allow editing of overridden properties (we cannot use a poll function
|
# Do not allow editing of overridden properties (we cannot use a poll function
|
||||||
@ -232,9 +232,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 = operator_row.operator("wm.properties_remove", text="", icon='X', emboss=False)
|
||||||
props.data_path = context_member
|
props.data_path = context_member
|
||||||
props.property_name = key
|
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')
|
|
||||||
|
|
||||||
nickberckley marked this conversation as resolved
Outdated
|
|||||||
|
|
||||||
class PropertyPanel:
|
class PropertyPanel:
|
||||||
|
Loading…
Reference in New Issue
Block a user
You should remove unused code instead of commenting it out.
Yeah I wasnt sure about guideline on that so waited for a reply.