Skip to content

Commit f902068

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 ed4a207 + 880d818 commit f902068

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)