Merge pull request #83497 from grenappels/probe_distance_fix
Fix generated light probes placing too close to manual light probes
This commit is contained in:
commit
a3266e28be
1 changed files with 1 additions and 1 deletions
|
@ -709,7 +709,7 @@ void LightmapGI::_gen_new_positions_from_octree(const GenProbesOctree *p_cell, f
|
||||||
const Vector3 *pp = probe_positions.ptr();
|
const Vector3 *pp = probe_positions.ptr();
|
||||||
bool exists = false;
|
bool exists = false;
|
||||||
for (int j = 0; j < ppcount; j++) {
|
for (int j = 0; j < ppcount; j++) {
|
||||||
if (pp[j].is_equal_approx(real_pos)) {
|
if (pp[j].distance_to(real_pos) < (p_cell_size * 0.5f)) {
|
||||||
exists = true;
|
exists = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue