|
@@ -274,6 +274,7 @@ void SSpineWidget::UpdateMesh(int32 LayerId, FSlateWindowElementList &OutDrawEle
|
|
if (attachment->getRTTI().isExactly(RegionAttachment::rtti)) {
|
|
if (attachment->getRTTI().isExactly(RegionAttachment::rtti)) {
|
|
RegionAttachment *regionAttachment = (RegionAttachment *) attachment;
|
|
RegionAttachment *regionAttachment = (RegionAttachment *) attachment;
|
|
attachmentColor.set(regionAttachment->getColor());
|
|
attachmentColor.set(regionAttachment->getColor());
|
|
|
|
+ attachmentVertices->setSize(8, 0);
|
|
regionAttachment->computeWorldVertices(*slot, *attachmentVertices, 0, 2);
|
|
regionAttachment->computeWorldVertices(*slot, *attachmentVertices, 0, 2);
|
|
attachmentAtlasRegion = (AtlasRegion *) regionAttachment->getRendererObject();
|
|
attachmentAtlasRegion = (AtlasRegion *) regionAttachment->getRendererObject();
|
|
attachmentIndices = quadIndices;
|
|
attachmentIndices = quadIndices;
|
|
@@ -283,6 +284,7 @@ void SSpineWidget::UpdateMesh(int32 LayerId, FSlateWindowElementList &OutDrawEle
|
|
} else if (attachment->getRTTI().isExactly(MeshAttachment::rtti)) {
|
|
} else if (attachment->getRTTI().isExactly(MeshAttachment::rtti)) {
|
|
MeshAttachment *mesh = (MeshAttachment *) attachment;
|
|
MeshAttachment *mesh = (MeshAttachment *) attachment;
|
|
attachmentColor.set(mesh->getColor());
|
|
attachmentColor.set(mesh->getColor());
|
|
|
|
+ attachmentVertices->setSize(mesh->getWorldVerticesLength(), 0);
|
|
mesh->computeWorldVertices(*slot, 0, mesh->getWorldVerticesLength(), attachmentVertices->buffer(), 0, 2);
|
|
mesh->computeWorldVertices(*slot, 0, mesh->getWorldVerticesLength(), attachmentVertices->buffer(), 0, 2);
|
|
attachmentAtlasRegion = (AtlasRegion *) mesh->getRendererObject();
|
|
attachmentAtlasRegion = (AtlasRegion *) mesh->getRendererObject();
|
|
attachmentIndices = mesh->getTriangles().buffer();
|
|
attachmentIndices = mesh->getTriangles().buffer();
|