Browse Source

[cpp] Fix loading of mesh attachments

Mario Zechner 3 years ago
parent
commit
1cba329685
1 changed files with 1 additions and 0 deletions
  1. 1 0
      spine-cpp/spine-cpp/src/spine/SkeletonBinary.cpp

+ 1 - 0
spine-cpp/spine-cpp/src/spine/SkeletonBinary.cpp

@@ -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);