Skip to content

Commit 57dc1b7

Browse files
committed
Swapped Columns and Rows inputs in the Grid node to align with XY
Signed-off-by: ezbaze <[email protected]>
1 parent fe4c037 commit 57dc1b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

editor/src/messages/portfolio/document/node_graph/node_properties.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,8 +1170,8 @@ pub(crate) fn grid_properties(node_id: NodeId, context: &mut NodePropertiesConte
11701170
let grid_type_index = grid::GridTypeInput::INDEX;
11711171
let spacing_index = grid::SpacingInput::<f64>::INDEX;
11721172
let angles_index = grid::AnglesInput::INDEX;
1173-
let rows_index = grid::RowsInput::INDEX;
11741173
let columns_index = grid::ColumnsInput::INDEX;
1174+
let rows_index = grid::RowsInput::INDEX;
11751175

11761176
let document_node = match get_document_node(node_id, context) {
11771177
Ok(document_node) => document_node,
@@ -1209,8 +1209,8 @@ pub(crate) fn grid_properties(node_id: NodeId, context: &mut NodePropertiesConte
12091209
}
12101210
}
12111211

1212-
let rows = number_widget(ParameterWidgetsInfo::from_index(document_node, node_id, rows_index, true, context), NumberInput::default().min(1.));
12131212
let columns = number_widget(ParameterWidgetsInfo::from_index(document_node, node_id, columns_index, true, context), NumberInput::default().min(1.));
1213+
let rows = number_widget(ParameterWidgetsInfo::from_index(document_node, node_id, rows_index, true, context), NumberInput::default().min(1.));
12141214

12151215
widgets.extend([LayoutGroup::Row { widgets: rows }, LayoutGroup::Row { widgets: columns }]);
12161216

node-graph/gcore/src/vector/generator_nodes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ fn grid<T: GridSpacing>(
158158
#[implementations(f64, DVec2)]
159159
spacing: T,
160160
#[default(30., 30.)] angles: DVec2,
161-
#[default(10)] rows: u32,
162161
#[default(10)] columns: u32,
162+
#[default(10)] rows: u32,
163163
) -> VectorDataTable {
164164
let (x_spacing, y_spacing) = spacing.as_dvec2().into();
165165
let (angle_a, angle_b) = angles.into();

0 commit comments

Comments
 (0)