Browse Source

Merge pull request #44122 from Nickswoboda/min-snap-step

Change minimum snap step of Tile Set to 1
Rémi Verschelde 4 years ago
parent
commit
91fd6374eb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      editor/plugins/tile_set_editor_plugin.cpp

+ 2 - 2
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) {
 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();
 	workspace->update();
 }
 }