[cpp] Fix loading of mesh attachments

This commit is contained in:
Mario Zechner 2021-12-22 15:17:12 +01:00
parent cd1a55b0af
commit 1cba329685

View File

@ -577,6 +577,7 @@ Attachment *SkeletonBinary::readAttachment(DataInput *input, Skin *skin, int slo
}
mesh->_path = path;
mesh->_color.set(color);
mesh->_bones.addAll(bones);
mesh->_vertices.addAll(vertices);
mesh->setWorldVerticesLength(vertexCount << 1);
mesh->_triangles.addAll(triangles);