diff options
| author | Juan Linietsky | 2017-01-20 19:24:49 -0300 |
|---|---|---|
| committer | GitHub | 2017-01-20 19:24:49 -0300 |
| commit | ee0f53df52d88ca57079579f3f3e943e7e40f53a (patch) | |
| tree | fcf670f1e8aec411c6deaf97e9fc77bf5c195f31 /core/math/octree.h | |
| parent | 72a02555850016ab792cf498c5370983d3b72832 (diff) | |
| parent | 6f4f9aa6ded6da027c84cc466c767334dc3d3362 (diff) | |
| download | godot-ee0f53df52d88ca57079579f3f3e943e7e40f53a.tar.gz godot-ee0f53df52d88ca57079579f3f3e943e7e40f53a.tar.zst godot-ee0f53df52d88ca57079579f3f3e943e7e40f53a.zip | |
Diffstat (limited to 'core/math/octree.h')
| -rw-r--r-- | core/math/octree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/octree.h b/core/math/octree.h index 3630922d1..e566df6a4 100644 --- a/core/math/octree.h +++ b/core/math/octree.h @@ -435,7 +435,7 @@ int Octree<T,use_pairs,AL>::get_subindex(OctreeElementID p_id) const { template<class T,bool use_pairs,class AL> void Octree<T,use_pairs,AL>::_insert_element(Element *p_element,Octant *p_octant) { - float element_size = p_element->aabb.get_longest_axis_size() * 1.01; // avoid precision issues + real_t element_size = p_element->aabb.get_longest_axis_size() * 1.01; // avoid precision issues if (p_octant->aabb.size.x/OCTREE_DIVISOR < element_size) { //if (p_octant->aabb.size.x*0.5 < element_size) { |
