From 79800ce47f9840ccea2addf3acf3ad169bf2cdbe Mon Sep 17 00:00:00 2001 From: Cory Petkovsek <632766+TokisanGames@users.noreply.github.com> Date: Tue, 30 Jul 2024 18:06:59 +0700 Subject: [PATCH] fix get_texture_id is_hole check (fixup) --- src/terrain_3d_storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terrain_3d_storage.cpp b/src/terrain_3d_storage.cpp index 12f6c3a5c..1cf47b41e 100644 --- a/src/terrain_3d_storage.cpp +++ b/src/terrain_3d_storage.cpp @@ -619,7 +619,7 @@ Vector3 Terrain3DStorage::get_texture_id(const Vector3 &p_global_position) const // Verify not in a hole float src = get_pixel(TYPE_CONTROL, p_global_position).r; // 32-bit float, not double/real - if (is_hole(src) < 0) { + if (is_hole(src)) { return Vector3(NAN, NAN, NAN); }