|
@@ -81,7 +81,6 @@ void spMeshAttachment_computeWorldVertices (spMeshAttachment* self, spSlot* slot
|
|
|
void spMeshAttachment_setParentMesh (spMeshAttachment* self, spMeshAttachment* parentMesh) {
|
|
|
CONST_CAST(spMeshAttachment*, self->parentMesh) = parentMesh;
|
|
|
if (parentMesh) {
|
|
|
- self->super.worldVerticesLength = parentMesh->super.worldVerticesLength;
|
|
|
|
|
|
self->super.bones = parentMesh->super.bones;
|
|
|
self->super.bonesCount = parentMesh->super.bonesCount;
|
|
@@ -95,6 +94,8 @@ void spMeshAttachment_setParentMesh (spMeshAttachment* self, spMeshAttachment* p
|
|
|
self->trianglesCount = parentMesh->trianglesCount;
|
|
|
|
|
|
self->hullLength = parentMesh->hullLength;
|
|
|
+
|
|
|
+ self->super.worldVerticesLength = parentMesh->super.worldVerticesLength;
|
|
|
|
|
|
self->edges = parentMesh->edges;
|
|
|
self->edgesCount = parentMesh->edgesCount;
|