aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorGilles Roudiere2017-09-03 21:13:59 +0200
committerGilles Roudiere2017-09-17 23:19:05 +0200
commita6f577a9f2206b51674bc9c61661de1fd9684604 (patch)
tree829b2789ed4e4aca34775d6196819b507c194c42 /editor/plugins
parent7c24a26bc29df3e4746d092690d2e8f577a312ac (diff)
downloadgodot-a6f577a9f2206b51674bc9c61661de1fd9684604.tar.gz
godot-a6f577a9f2206b51674bc9c61661de1fd9684604.tar.zst
godot-a6f577a9f2206b51674bc9c61661de1fd9684604.zip
Avoid grid step to go below zero
Diffstat (limited to 'editor/plugins')
-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 c9e2fdb06..4c28ce568 100644
--- a/editor/plugins/canvas_item_editor_plugin.cpp
+++ b/editor/plugins/canvas_item_editor_plugin.cpp
@@ -111,13 +111,13 @@ public:
label->set_h_size_flags(SIZE_EXPAND_FILL);
grid_step_x = memnew(SpinBox);
- grid_step_x->set_min(-SPIN_BOX_GRID_RANGE);
+ grid_step_x->set_min(0.01);
grid_step_x->set_max(SPIN_BOX_GRID_RANGE);
grid_step_x->set_suffix("px");
child_container->add_child(grid_step_x);
grid_step_y = memnew(SpinBox);
- grid_step_y->set_min(-SPIN_BOX_GRID_RANGE);
+ grid_step_y->set_min(0.01);
grid_step_y->set_max(SPIN_BOX_GRID_RANGE);
grid_step_y->set_suffix("px");
child_container->add_child(grid_step_y);