summaryrefslogtreecommitdiff
path: root/scene/resources/mesh.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-11-19 10:42:27 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-11-19 10:43:29 -0300
commit634aa4fc24dcc2ca5ebb284a0deb4664d6f1266b (patch)
tree87fe6f8802c8e4f7a3a4fc4a955922a46422c16c /scene/resources/mesh.cpp
parent5d152cc42df201263ed7c417f11eaee36a199392 (diff)
Ensure bone AABBs are properly transformed to affect mesh AABB, fixes #19281
Diffstat (limited to 'scene/resources/mesh.cpp')
-rw-r--r--scene/resources/mesh.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/mesh.cpp b/scene/resources/mesh.cpp
index 838d73edb3..80191367ce 100644
--- a/scene/resources/mesh.cpp
+++ b/scene/resources/mesh.cpp
@@ -706,6 +706,7 @@ bool ArrayMesh::_get(const StringName &p_name, Variant &r_ret) const {
Vector<AABB> skel_aabb = VS::get_singleton()->mesh_surface_get_skeleton_aabb(mesh, idx);
Array arr;
+ arr.resize(skel_aabb.size());
for (int i = 0; i < skel_aabb.size(); i++) {
arr[i] = skel_aabb[i];
}