Skip to content

Commit e349811

Browse files
2shady4uphnix-dev
andcommitted
CanvasItemEditor Fix snapping grid misalignment
(cherry picked from commit 7e22093) Co-authored-by: MrPhnix <76911907+MrPhnix@users.noreply.github.com>
1 parent 36a0185 commit e349811

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editor/plugins/canvas_item_editor_plugin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@ class SnapDialog : public ConfirmationDialog {
129129
label->set_h_size_flags(SIZE_EXPAND_FILL);
130130

131131
grid_step_x = memnew(SpinBox);
132-
grid_step_x->set_min(0.01);
132+
grid_step_x->set_min(1);
133133
grid_step_x->set_max(SPIN_BOX_GRID_RANGE);
134134
grid_step_x->set_allow_greater(true);
135135
grid_step_x->set_suffix("px");
136136
grid_step_x->set_h_size_flags(SIZE_EXPAND_FILL);
137137
child_container->add_child(grid_step_x);
138138

139139
grid_step_y = memnew(SpinBox);
140-
grid_step_y->set_min(0.01);
140+
grid_step_y->set_min(1);
141141
grid_step_y->set_max(SPIN_BOX_GRID_RANGE);
142142
grid_step_y->set_allow_greater(true);
143143
grid_step_y->set_suffix("px");

0 commit comments

Comments
 (0)