Skip to content

Commit

Permalink
fix get_texture_id is_hole check (fixup)
Browse files Browse the repository at this point in the history
  • Loading branch information
TokisanGames committed Aug 1, 2024
1 parent 4153ea8 commit 79800ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terrain_3d_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 79800ce

Please # to comment.