mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[cpp] Fix constants of InheritTimeline
This commit is contained in:
parent
73a6a946f0
commit
39b6a50311
@ -62,6 +62,9 @@ namespace spine {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
int _boneIndex;
|
int _boneIndex;
|
||||||
|
|
||||||
|
static const int ENTRIES = 2;
|
||||||
|
static const int INHERIT = 1;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -41,9 +41,6 @@ using namespace spine;
|
|||||||
|
|
||||||
RTTI_IMPL(InheritTimeline, Timeline)
|
RTTI_IMPL(InheritTimeline, Timeline)
|
||||||
|
|
||||||
#define ENTRIES 2
|
|
||||||
#define INHERIT 1
|
|
||||||
|
|
||||||
InheritTimeline::InheritTimeline(size_t frameCount, int boneIndex) : Timeline(frameCount, ENTRIES),
|
InheritTimeline::InheritTimeline(size_t frameCount, int boneIndex) : Timeline(frameCount, ENTRIES),
|
||||||
_boneIndex(boneIndex) {
|
_boneIndex(boneIndex) {
|
||||||
PropertyId ids[] = {((PropertyId) Property_Inherit << 32) | boneIndex };
|
PropertyId ids[] = {((PropertyId) Property_Inherit << 32) | boneIndex };
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user