mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[ue] Fix compilation errors after RendererObject change in spine-cpp.
This commit is contained in:
parent
983220d3bc
commit
7a4312a7ba
@ -276,7 +276,7 @@ void SSpineWidget::UpdateMesh(int32 LayerId, FSlateWindowElementList &OutDrawEle
|
|||||||
attachmentColor.set(regionAttachment->getColor());
|
attachmentColor.set(regionAttachment->getColor());
|
||||||
attachmentVertices->setSize(8, 0);
|
attachmentVertices->setSize(8, 0);
|
||||||
regionAttachment->computeWorldVertices(*slot, *attachmentVertices, 0, 2);
|
regionAttachment->computeWorldVertices(*slot, *attachmentVertices, 0, 2);
|
||||||
attachmentAtlasRegion = (AtlasRegion *) regionAttachment->getRendererObject();
|
attachmentAtlasRegion = (AtlasRegion *) regionAttachment->getRegion();
|
||||||
attachmentIndices = quadIndices;
|
attachmentIndices = quadIndices;
|
||||||
attachmentUvs = regionAttachment->getUVs().buffer();
|
attachmentUvs = regionAttachment->getUVs().buffer();
|
||||||
numVertices = 4;
|
numVertices = 4;
|
||||||
@ -286,7 +286,7 @@ void SSpineWidget::UpdateMesh(int32 LayerId, FSlateWindowElementList &OutDrawEle
|
|||||||
attachmentColor.set(mesh->getColor());
|
attachmentColor.set(mesh->getColor());
|
||||||
attachmentVertices->setSize(mesh->getWorldVerticesLength(), 0);
|
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->getRegion();
|
||||||
attachmentIndices = mesh->getTriangles().buffer();
|
attachmentIndices = mesh->getTriangles().buffer();
|
||||||
attachmentUvs = mesh->getUVs().buffer();
|
attachmentUvs = mesh->getUVs().buffer();
|
||||||
numVertices = mesh->getWorldVerticesLength() >> 1;
|
numVertices = mesh->getWorldVerticesLength() >> 1;
|
||||||
|
|||||||
@ -109,7 +109,7 @@ Atlas *USpineAtlasAsset::GetAtlas() {
|
|||||||
for (size_t i = 0, n = pages.size(), j = 0; i < n; i++) {
|
for (size_t i = 0, n = pages.size(), j = 0; i < n; i++) {
|
||||||
AtlasPage *page = pages[i];
|
AtlasPage *page = pages[i];
|
||||||
if (atlasPages.Num() > 0 && atlasPages.Num() > (int32) i)
|
if (atlasPages.Num() > 0 && atlasPages.Num() > (int32) i)
|
||||||
page->setRendererObject(atlasPages[j++]);
|
page->texture = atlasPages[j++];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return this->atlas;
|
return this->atlas;
|
||||||
|
|||||||
@ -218,7 +218,7 @@ void USpineSkeletonRendererComponent::UpdateMesh(USpineSkeletonComponent *compon
|
|||||||
attachmentColor.set(regionAttachment->getColor());
|
attachmentColor.set(regionAttachment->getColor());
|
||||||
attachmentVertices->setSize(8, 0);
|
attachmentVertices->setSize(8, 0);
|
||||||
regionAttachment->computeWorldVertices(*slot, *attachmentVertices, 0, 2);
|
regionAttachment->computeWorldVertices(*slot, *attachmentVertices, 0, 2);
|
||||||
attachmentAtlasRegion = (AtlasRegion *) regionAttachment->getRendererObject();
|
attachmentAtlasRegion = (AtlasRegion *) regionAttachment->getRegion();
|
||||||
attachmentIndices = quadIndices;
|
attachmentIndices = quadIndices;
|
||||||
attachmentUvs = regionAttachment->getUVs().buffer();
|
attachmentUvs = regionAttachment->getUVs().buffer();
|
||||||
numVertices = 4;
|
numVertices = 4;
|
||||||
@ -235,7 +235,7 @@ void USpineSkeletonRendererComponent::UpdateMesh(USpineSkeletonComponent *compon
|
|||||||
attachmentColor.set(mesh->getColor());
|
attachmentColor.set(mesh->getColor());
|
||||||
attachmentVertices->setSize(mesh->getWorldVerticesLength(), 0);
|
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->getRegion();
|
||||||
attachmentIndices = mesh->getTriangles().buffer();
|
attachmentIndices = mesh->getTriangles().buffer();
|
||||||
attachmentUvs = mesh->getUVs().buffer();
|
attachmentUvs = mesh->getUVs().buffer();
|
||||||
numVertices = mesh->getWorldVerticesLength() >> 1;
|
numVertices = mesh->getWorldVerticesLength() >> 1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user