diff options
| author | Juan Linietsky | 2017-01-11 00:52:51 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-01-11 00:52:51 -0300 |
| commit | bc26f905817945300d397696330d1ab04a1af33c (patch) | |
| tree | d06338399c8ea410042f6631fb3db3efcc100b05 /core/math/triangle_mesh.cpp | |
| parent | 710692278d1353aad08bc7bceb655afc1d6c950c (diff) | |
| download | godot-bc26f905817945300d397696330d1ab04a1af33c.tar.gz godot-bc26f905817945300d397696330d1ab04a1af33c.tar.zst godot-bc26f905817945300d397696330d1ab04a1af33c.zip | |
Diffstat (limited to 'core/math/triangle_mesh.cpp')
| -rw-r--r-- | core/math/triangle_mesh.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/triangle_mesh.cpp b/core/math/triangle_mesh.cpp index 101e164ea..fc5f55066 100644 --- a/core/math/triangle_mesh.cpp +++ b/core/math/triangle_mesh.cpp @@ -48,7 +48,7 @@ int TriangleMesh::_create_bvh(BVH*p_bvh,BVH** p_bb,int p_from,int p_size,int p_d } - AABB aabb; + Rect3 aabb; aabb=p_bb[p_from]->aabb; for(int i=1;i<p_size;i++) { @@ -176,7 +176,7 @@ void TriangleMesh::create(const PoolVector<Vector3>& p_faces) { } -Vector3 TriangleMesh::get_area_normal(const AABB& p_aabb) const { +Vector3 TriangleMesh::get_area_normal(const Rect3& p_aabb) const { uint32_t* stack = (uint32_t*)alloca(sizeof(int)*max_depth); |
