Fix reversed logic in if.

This commit is contained in:
Relintai 2022-02-26 23:47:53 +01:00
parent 67b9090bd1
commit 3499536f1c

View File

@ -160,7 +160,7 @@ void Terrain2DMesherBlocky::add_chunk_normal(Ref<Terrain2DChunkDefault> chunk) {
Vector2(1, 1)
};
if (texture_scale <= 1) {
if (texture_scale > 1) {
for (int i = 0; i < 4; ++i) {
uvs[i] = surface->transform_uv_scaled(uvs[i], x % texture_scale, y % texture_scale, texture_scale);
}