From 899a9a80b941a05e0b1e2b356ef098be6a897e28 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 22 Dec 2021 16:23:08 +0100 Subject: [PATCH] [cocos2dx] Fix renderer compilation errors. --- spine-cocos2dx/src/spine/SkeletonRenderer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spine-cocos2dx/src/spine/SkeletonRenderer.cpp b/spine-cocos2dx/src/spine/SkeletonRenderer.cpp index b87d667f9..fcd3819f0 100644 --- a/spine-cocos2dx/src/spine/SkeletonRenderer.cpp +++ b/spine-cocos2dx/src/spine/SkeletonRenderer.cpp @@ -249,7 +249,6 @@ namespace spine { void SkeletonRenderer::update(float deltaTime) { Node::update(deltaTime); - if (_ownsSkeleton) _skeleton->update(deltaTime * _timeScale); } void SkeletonRenderer::draw(Renderer *renderer, const Mat4 &transform, uint32_t transformFlags) { @@ -657,7 +656,7 @@ namespace spine { RegionAttachment *attachment = (RegionAttachment *) slot->getAttachment(); float worldVertices[8]; - attachment->computeWorldVertices(slot->getBone(), worldVertices, 0, 2); + attachment->computeWorldVertices(*slot, worldVertices, 0, 2); const Vec2 points[4] = { {worldVertices[0], worldVertices[1]}, @@ -958,7 +957,7 @@ namespace spine { if (attachment->getRTTI().isExactly(RegionAttachment::rtti)) { RegionAttachment *const regionAttachment = static_cast(attachment); assert(dstPtr + 8 <= dstEnd); - regionAttachment->computeWorldVertices(slot.getBone(), dstPtr, 0, 2); + regionAttachment->computeWorldVertices(slot, dstPtr, 0, 2); dstPtr += 8; } else if (attachment->getRTTI().isExactly(MeshAttachment::rtti)) { MeshAttachment *const mesh = static_cast(attachment);