From 5a5ad978bf560f0ff9092e8e4f8d5356fa36fc41 Mon Sep 17 00:00:00 2001 From: quackarooni Date: Thu, 10 Apr 2025 09:46:37 +0200 Subject: [PATCH] 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 --- scripts/startup/bl_ui/space_node.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/startup/bl_ui/space_node.py b/scripts/startup/bl_ui/space_node.py index 99925850897..81d24c7278a 100644 --- a/scripts/startup/bl_ui/space_node.py +++ b/scripts/startup/bl_ui/space_node.py @@ -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