aboutsummaryrefslogtreecommitdiff
path: root/scene/resources/primitive_meshes.cpp
diff options
context:
space:
mode:
authorFerenc Arn2017-11-16 21:09:00 -0500
committerFerenc Arn2017-11-17 11:01:41 -0500
commitd28763a4c1792dc00fde3d151eaea54f9cf2b8a9 (patch)
tree7abd311b6e672829bd751fbf4d9135b60f2f9913 /scene/resources/primitive_meshes.cpp
parentb44cb4e3b9b573a3cbbd6f71aff81e6c3465d84b (diff)
downloadgodot-d28763a4c1792dc00fde3d151eaea54f9cf2b8a9.tar.gz
godot-d28763a4c1792dc00fde3d151eaea54f9cf2b8a9.tar.zst
godot-d28763a4c1792dc00fde3d151eaea54f9cf2b8a9.zip
Diffstat (limited to 'scene/resources/primitive_meshes.cpp')
-rw-r--r--scene/resources/primitive_meshes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/primitive_meshes.cpp b/scene/resources/primitive_meshes.cpp
index 8e3899315..3b80db291 100644
--- a/scene/resources/primitive_meshes.cpp
+++ b/scene/resources/primitive_meshes.cpp
@@ -42,7 +42,7 @@ void PrimitiveMesh::_update() const {
PoolVector<Vector3> points = arr[VS::ARRAY_VERTEX];
- aabb = Rect3();
+ aabb = AABB();
int pc = points.size();
ERR_FAIL_COND(pc == 0);
@@ -141,7 +141,7 @@ StringName PrimitiveMesh::get_blend_shape_name(int p_index) const {
return StringName();
}
-Rect3 PrimitiveMesh::get_aabb() const {
+AABB PrimitiveMesh::get_aabb() const {
if (pending_request) {
_update();
}