|
@@ -276,7 +276,7 @@ void SSpineWidget::UpdateMesh(int32 LayerId, FSlateWindowElementList &OutDrawEle
|
|
|
attachmentColor.set(regionAttachment->getColor());
|
|
|
attachmentVertices->setSize(8, 0);
|
|
|
regionAttachment->computeWorldVertices(*slot, *attachmentVertices, 0, 2);
|
|
|
- attachmentAtlasRegion = (AtlasRegion *) regionAttachment->getRendererObject();
|
|
|
+ attachmentAtlasRegion = (AtlasRegion *) regionAttachment->getRegion();
|
|
|
attachmentIndices = quadIndices;
|
|
|
attachmentUvs = regionAttachment->getUVs().buffer();
|
|
|
numVertices = 4;
|
|
@@ -286,7 +286,7 @@ void SSpineWidget::UpdateMesh(int32 LayerId, FSlateWindowElementList &OutDrawEle
|
|
|
attachmentColor.set(mesh->getColor());
|
|
|
attachmentVertices->setSize(mesh->getWorldVerticesLength(), 0);
|
|
|
mesh->computeWorldVertices(*slot, 0, mesh->getWorldVerticesLength(), attachmentVertices->buffer(), 0, 2);
|
|
|
- attachmentAtlasRegion = (AtlasRegion *) mesh->getRendererObject();
|
|
|
+ attachmentAtlasRegion = (AtlasRegion *) mesh->getRegion();
|
|
|
attachmentIndices = mesh->getTriangles().buffer();
|
|
|
attachmentUvs = mesh->getUVs().buffer();
|
|
|
numVertices = mesh->getWorldVerticesLength() >> 1;
|