Explorar o código

Change minimum snap step of Tile Set to 1

(cherry picked from commit 70c946f82d988135eb7ff665742d5a97ae0ce3a8)
Nick Swoboda %!s(int64=4) %!d(string=hai) anos
pai
achega
956477f4a2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      editor/plugins/tile_set_editor_plugin.cpp

+ 2 - 2
editor/plugins/tile_set_editor_plugin.cpp

@@ -2344,8 +2344,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();
 }