[cpp] 4.3 porting WIP

This commit is contained in:
Mario Zechner 2025-06-12 04:07:47 +02:00
parent ede7742c46
commit db7478d38d
2 changed files with 10 additions and 9 deletions

View File

@ -36,6 +36,7 @@
#include <spine/SpineString.h>
#include <spine/Color.h>
#include <spine/Physics.h>
#include <spine/Update.h>
namespace spine {
class SkeletonData;

View File

@ -147,9 +147,9 @@ void Skin::attachAll(Skeleton &skeleton, Skin &oldSkin) {
int slotIndex = (int) entry._slotIndex;
Slot *slot = slots[slotIndex];
if (slot->getAttachment() == entry._attachment) {
if (slot->getPose().getAttachment() == entry._attachment) {
Attachment *attachment = getAttachment(slotIndex, entry._name);
if (attachment) slot->setAttachment(attachment);
if (attachment) slot->getPose().setAttachment(attachment);
}
}
}