From 1773c925ef51f39a822d95187b19f8e3e4e9ea2e Mon Sep 17 00:00:00 2001 From: 0SlowPoke0 Date: Thu, 3 Jul 2025 17:30:01 +0530 Subject: [PATCH] fix min value and degree unit --- .../portfolio/document/node_graph/node_properties.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/editor/src/messages/portfolio/document/node_graph/node_properties.rs b/editor/src/messages/portfolio/document/node_graph/node_properties.rs index de7cb5507d..018182c106 100644 --- a/editor/src/messages/portfolio/document/node_graph/node_properties.rs +++ b/editor/src/messages/portfolio/document/node_graph/node_properties.rs @@ -1250,10 +1250,10 @@ pub(crate) fn spiral_properties(node_id: NodeId, context: &mut NodePropertiesCon if let Some(&TaggedValue::SpiralType(spiral_type)) = spiral_type_input.as_non_exposed_value() { match spiral_type { SpiralType::Archimedean => { - let start_radius = LayoutGroup::Row { + let inner_radius = LayoutGroup::Row { widgets: number_widget( ParameterWidgetsInfo::from_index(document_node, node_id, InnerRadiusInput::INDEX, true, context), - NumberInput::default().min(0.01), + NumberInput::default().min(0.), ), }; @@ -1264,7 +1264,7 @@ pub(crate) fn spiral_properties(node_id: NodeId, context: &mut NodePropertiesCon ), }; - widgets.extend([start_radius, tightness]); + widgets.extend([inner_radius, tightness]); } SpiralType::Logarithmic => { let start_radius = LayoutGroup::Row { @@ -1292,7 +1292,7 @@ pub(crate) fn spiral_properties(node_id: NodeId, context: &mut NodePropertiesCon ); let angle_offset = number_widget( ParameterWidgetsInfo::from_index(document_node, node_id, AngleOffsetInput::INDEX, true, context), - NumberInput::default().min(0.1).max(180.).unit(" °"), + NumberInput::default().min(0.1).max(180.).unit("°"), ); widgets.extend([LayoutGroup::Row { widgets: turns }, LayoutGroup::Row { widgets: angle_offset }]);