summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMrPhnix <76911907+MrPhnix@users.noreply.github.com>2022-12-23 16:05:25 +0100
committerMrPhnix <76911907+MrPhnix@users.noreply.github.com>2022-12-24 12:02:48 +0100
commit272b8d9d177d292afaa03dbceba169ad3f64a467 (patch)
tree82710dd68d6b6182b645cf5f69979446de98a62a
parent63f95c0e58e51ec2939e8b47803cb607fb35cadc (diff)
CanvasItemEditor Fix snapping grid misalignment
Resolves: #70186 See: #65101
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp
index aab64587ce..32c35b952c 100644
--- a/editor/plugins/canvas_item_editor_plugin.cpp
+++ b/editor/plugins/canvas_item_editor_plugin.cpp
@@ -135,7 +135,7 @@ public:
label->set_h_size_flags(Control::SIZE_EXPAND_FILL);
grid_step_x = memnew(SpinBox);
- grid_step_x->set_min(0.01);
+ grid_step_x->set_min(1);
grid_step_x->set_max(SPIN_BOX_GRID_RANGE);
grid_step_x->set_allow_greater(true);
grid_step_x->set_suffix("px");
@@ -144,7 +144,7 @@ public:
child_container->add_child(grid_step_x);
grid_step_y = memnew(SpinBox);
- grid_step_y->set_min(0.01);
+ grid_step_y->set_min(1);
grid_step_y->set_max(SPIN_BOX_GRID_RANGE);
grid_step_y->set_allow_greater(true);
grid_step_y->set_suffix("px");