[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;
@ -251,19 +252,19 @@ namespace spine {
void update(float delta);
float getWindX();
void setWindX(float windX);
float getWindY();
void setWindY(float windY);
float getGravityX();
void setGravityX(float gravityX);
float getGravityY();
void setGravityY(float gravityY);
/// Rotates the physics constraint so next {@link #update(Physics)} forces are applied as if the bone rotated around the

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);
}
}
}