[cpp] Fix constants of InheritTimeline

This commit is contained in:
Mario Zechner 2024-04-03 15:53:06 +02:00
parent 73a6a946f0
commit 39b6a50311
2 changed files with 3 additions and 3 deletions

View File

@ -62,6 +62,9 @@ namespace spine {
private:
int _boneIndex;
static const int ENTRIES = 2;
static const int INHERIT = 1;
};
}

View File

@ -41,9 +41,6 @@ using namespace spine;
RTTI_IMPL(InheritTimeline, Timeline)
#define ENTRIES 2
#define INHERIT 1
InheritTimeline::InheritTimeline(size_t frameCount, int boneIndex) : Timeline(frameCount, ENTRIES),
_boneIndex(boneIndex) {
PropertyId ids[] = {((PropertyId) Property_Inherit << 32) | boneIndex };