1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Change minimum snap step of Tile Set to 1

This commit is contained in:
Nick Swoboda
2020-12-05 08:17:16 -08:00
parent c574b4d086
commit 70c946f82d

View File

@@ -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();
}