mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 01:06:00 +08:00
[haxe] Port: Fixed mixing out inherit timelines to the setup pose. See #2590.
This commit is contained in:
parent
9e35ce95fe
commit
6290342960
@ -63,6 +63,11 @@ class InheritTimeline extends Timeline implements BoneTimeline {
|
|||||||
var bone:Bone = skeleton.bones[boneIndex];
|
var bone:Bone = skeleton.bones[boneIndex];
|
||||||
if (!bone.active) return;
|
if (!bone.active) return;
|
||||||
|
|
||||||
|
if (direction == MixDirection.mixOut) {
|
||||||
|
if (blend == MixBlend.setup) bone.inherit = bone.data.inherit;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var frames:Array<Float> = frames;
|
var frames:Array<Float> = frames;
|
||||||
if (time < frames[0]) {
|
if (time < frames[0]) {
|
||||||
if (blend == MixBlend.setup || blend == MixBlend.first) bone.inherit = bone.data.inherit;
|
if (blend == MixBlend.setup || blend == MixBlend.first) bone.inherit = bone.data.inherit;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user