diff --git a/scripts/startup/bl_ui/space_node.py b/scripts/startup/bl_ui/space_node.py index 5f0ab48c85f..3f5b1a2cb12 100644 --- a/scripts/startup/bl_ui/space_node.py +++ b/scripts/startup/bl_ui/space_node.py @@ -454,12 +454,9 @@ class NODE_PT_geometry_node_tool_object_types(Panel): col = layout.column() col.active = group.is_tool for prop, name, icon in types: - row = col.row() - row_checkbox = row.row() - row_checkbox.prop(group, prop, text="") - row_label = row.row() - row_label.label(text=name, icon=icon) - row_label.active = getattr(group, prop) + row = col.row(align=True) + row.label(text=name, icon=icon) + row.prop(group, prop, text="") class NODE_PT_geometry_node_tool_mode(Panel): @@ -482,12 +479,9 @@ class NODE_PT_geometry_node_tool_mode(Panel): col = layout.column() col.active = group.is_tool for prop, name, icon in modes: - row = col.row() - row_checkbox = row.row() - row_checkbox.prop(group, prop, text="") - row_label = row.row() - row_label.label(text=name, icon=icon) - row_label.active = getattr(group, prop) + row = col.row(align=True) + row.label(text=name, icon=icon) + row.prop(group, prop, text="") class NODE_PT_node_color_presets(PresetPanel, Panel):