Skip to content

Commit 95a3a71

Browse files
committed
Merge pull request godotengine#83497 from grenappels/probe_distance_fix
Fix generated light probes placing too close to manual light probes
2 parents 29d1358 + aeede49 commit 95a3a71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scene/3d/lightmap_gi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ void LightmapGI::_gen_new_positions_from_octree(const GenProbesOctree *p_cell, f
709709
const Vector3 *pp = probe_positions.ptr();
710710
bool exists = false;
711711
for (int j = 0; j < ppcount; j++) {
712-
if (pp[j].is_equal_approx(real_pos)) {
712+
if (pp[j].distance_to(real_pos) < (p_cell_size * 0.5f)) {
713713
exists = true;
714714
break;
715715
}

0 commit comments

Comments
 (0)