diff options
| author | Ferenc Arn | 2017-01-14 14:35:39 -0600 |
|---|---|---|
| committer | Ferenc Arn | 2017-01-16 13:36:33 -0600 |
| commit | 6f4f9aa6ded6da027c84cc466c767334dc3d3362 (patch) | |
| tree | 4d45d7e600a069d7feb2a2dae3a70d6b9ddbf884 /core/math/octree.h | |
| parent | d13f2f9e25e380496e706b59720cd85eed299ca2 (diff) | |
| download | godot-6f4f9aa6ded6da027c84cc466c767334dc3d3362.tar.gz godot-6f4f9aa6ded6da027c84cc466c767334dc3d3362.tar.zst godot-6f4f9aa6ded6da027c84cc466c767334dc3d3362.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) { |
