From d7633706e7cd2dae163e1b4fac376e19e5889620 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Fri, 20 May 2016 02:00:36 +0200 Subject: [PATCH] spine-js, fixed FfdTimeline. --- spine-js/spine.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spine-js/spine.js b/spine-js/spine.js index fbb710711..ea554a0e8 100644 --- a/spine-js/spine.js +++ b/spine-js/spine.js @@ -979,7 +979,8 @@ spine.FfdTimeline.prototype = { apply: function (skeleton, lastTime, time, firedEvents, alpha) { var slot = skeleton.slots[this.slotIndex]; 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; if (time < frames[0]) return; // Time is before first frame.