diff --git a/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SSpineWidget.cpp b/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SSpineWidget.cpp index 879811e3c..5b630e6fa 100644 --- a/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SSpineWidget.cpp +++ b/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SSpineWidget.cpp @@ -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; diff --git a/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SpineAtlasAsset.cpp b/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SpineAtlasAsset.cpp index d9ff3ab62..1c63187da 100644 --- a/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SpineAtlasAsset.cpp +++ b/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SpineAtlasAsset.cpp @@ -109,7 +109,7 @@ Atlas *USpineAtlasAsset::GetAtlas() { for (size_t i = 0, n = pages.size(), j = 0; i < n; i++) { AtlasPage *page = pages[i]; if (atlasPages.Num() > 0 && atlasPages.Num() > (int32) i) - page->setRendererObject(atlasPages[j++]); + page->texture = atlasPages[j++]; } } return this->atlas; diff --git a/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SpineSkeletonRendererComponent.cpp b/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SpineSkeletonRendererComponent.cpp index e2f7930c8..ac52f4956 100644 --- a/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SpineSkeletonRendererComponent.cpp +++ b/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SpineSkeletonRendererComponent.cpp @@ -218,7 +218,7 @@ void USpineSkeletonRendererComponent::UpdateMesh(USpineSkeletonComponent *compon 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; @@ -235,7 +235,7 @@ void USpineSkeletonRendererComponent::UpdateMesh(USpineSkeletonComponent *compon 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;