1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Merge pull request #70428 from MrPhnix/issue-70186

CanvasItemEditor Fix snapping grid misalignment
This commit is contained in:
Rémi Verschelde
2023-01-03 12:39:09 +01:00

View File

@@ -135,7 +135,7 @@ public:
label->set_h_size_flags(Control::SIZE_EXPAND_FILL); label->set_h_size_flags(Control::SIZE_EXPAND_FILL);
grid_step_x = memnew(SpinBox); 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_max(SPIN_BOX_GRID_RANGE);
grid_step_x->set_allow_greater(true); grid_step_x->set_allow_greater(true);
grid_step_x->set_suffix("px"); grid_step_x->set_suffix("px");
@@ -144,7 +144,7 @@ public:
child_container->add_child(grid_step_x); child_container->add_child(grid_step_x);
grid_step_y = memnew(SpinBox); 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_max(SPIN_BOX_GRID_RANGE);
grid_step_y->set_allow_greater(true); grid_step_y->set_allow_greater(true);
grid_step_y->set_suffix("px"); grid_step_y->set_suffix("px");