mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
fix to ensure generated light probes do not get placed too close to manual light probes
This commit is contained in:
parent
a574c0296b
commit
97205ea5b8
@ -698,7 +698,7 @@ void LightmapGI::_gen_new_positions_from_octree(const GenProbesOctree *p_cell, f
|
||||
const Vector3 *pp = probe_positions.ptr();
|
||||
bool exists = false;
|
||||
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;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user