summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-12-05 17:49:34 +0100
committerGitHub <noreply@github.com>2020-12-05 17:49:34 +0100
commit91fd6374eb313aa31008a6b90f067644ede3e02f (patch)
tree1ec4af97480cade0af83b31c7b0a17c8e1460d9e /editor/plugins
parent9ab087942aa88fafe3b7963eb39f658c2d80b922 (diff)
parent70c946f82d988135eb7ff665742d5a97ae0ce3a8 (diff)
Merge pull request #44122 from Nickswoboda/min-snap-step
Change minimum snap step of Tile Set to 1
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/tile_set_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/tile_set_editor_plugin.cpp b/editor/plugins/tile_set_editor_plugin.cpp
index 6d2fd65dd6..3b95b1a066 100644
--- a/editor/plugins/tile_set_editor_plugin.cpp
+++ b/editor/plugins/tile_set_editor_plugin.cpp
@@ -2359,8 +2359,8 @@ void TileSetEditor::_set_edited_collision_shape(const Ref<Shape2D> &p_shape) {
}
void TileSetEditor::_set_snap_step(Vector2 p_val) {
- snap_step.x = CLAMP(p_val.x, 0, 256);
- snap_step.y = CLAMP(p_val.y, 0, 256);
+ snap_step.x = CLAMP(p_val.x, 1, 256);
+ snap_step.y = CLAMP(p_val.y, 1, 256);
workspace->update();
}