mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
spine-js, fixed FfdTimeline.
This commit is contained in:
parent
419982695f
commit
d7633706e7
@ -979,7 +979,8 @@ spine.FfdTimeline.prototype = {
|
|||||||
apply: function (skeleton, lastTime, time, firedEvents, alpha) {
|
apply: function (skeleton, lastTime, time, firedEvents, alpha) {
|
||||||
var slot = skeleton.slots[this.slotIndex];
|
var slot = skeleton.slots[this.slotIndex];
|
||||||
var slotAttachment = slot.attachment;
|
var slotAttachment = slot.attachment;
|
||||||
if (slotAttachment != this.attachment && (!slotAttachment.inheritFFD || slotAttachment.parentMesh != sourceAttachment)) return;
|
if (!slotAttachment) return;
|
||||||
|
if (slotAttachment != this.attachment && (!slotAttachment.inheritFFD || slotAttachment.parentMesh != this.attachment)) return;
|
||||||
|
|
||||||
var frames = this.frames;
|
var frames = this.frames;
|
||||||
if (time < frames[0]) return; // Time is before first frame.
|
if (time < frames[0]) return; // Time is before first frame.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user