diff options
author | Nick Swoboda <nickswoboda@gmail.com> | 2020-12-05 08:17:16 -0800 |
---|---|---|
committer | Nick Swoboda <nickswoboda@gmail.com> | 2020-12-05 08:18:16 -0800 |
commit | 70c946f82d988135eb7ff665742d5a97ae0ce3a8 (patch) | |
tree | 7bef587f5ebf823e726f7d2a4a63f6cc9679c643 | |
parent | c574b4d086a9d14123c6034be5048a24ff06c910 (diff) |
Change minimum snap step of Tile Set to 1
-rw-r--r-- | editor/plugins/tile_set_editor_plugin.cpp | 4 |
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(); } |