Nodes: Make spacing for Panel Toggle properties consistent with that of Boolean sockets

Panel toggles have a subpanel for listing out properties associated with their
Boolean checkbox.

The vertical spacing for properties in this panel is slightly different to how
normal Boolean sockets list their properties. This patch makes it more
consistent by putting the properties after `Default` in a `column` sublayout.

Pull Request: https://projects.blender.org/blender/blender/pulls/137211
This commit is contained in:
quackarooni
2025-04-10 09:46:37 +02:00
committed by Jacques Lucke
parent ae8665b8b2
commit 5a5ad978bf

View File

@@ -1021,8 +1021,10 @@ class NODE_PT_node_tree_interface_panel_toggle(Panel):
layout.use_property_decorate = False
layout.prop(panel_toggle_item, "default_value", text="Default")
layout.prop(panel_toggle_item, "hide_in_modifier")
layout.prop(panel_toggle_item, "force_non_field")
col = layout.column()
col.prop(panel_toggle_item, "hide_in_modifier")
col.prop(panel_toggle_item, "force_non_field")
layout.use_property_split = False