mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[cpp] 4.3 porting WIP
This commit is contained in:
parent
ede7742c46
commit
db7478d38d
@ -36,6 +36,7 @@
|
||||
#include <spine/SpineString.h>
|
||||
#include <spine/Color.h>
|
||||
#include <spine/Physics.h>
|
||||
#include <spine/Update.h>
|
||||
|
||||
namespace spine {
|
||||
class SkeletonData;
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user