diff --git a/src/pixi/extras/PIXISpine.js b/src/pixi/extras/PIXISpine.js index 72abe9e..9b8d8ff 100644 --- a/src/pixi/extras/PIXISpine.js +++ b/src/pixi/extras/PIXISpine.js @@ -161,6 +161,13 @@ var slot = drawOrder[i]; var attachment = slot.attachment; var slotContainer = this.slotContainers[i]; + + if (!attachment) + { + slotContainer.visible = false; + continue; + } + var type = attachment.type; if (type === spine.AttachmentType.region) { @@ -296,6 +303,7 @@ strip.uvs = attachment.uvs; strip.indices = attachment.triangles; + slot.meshes = slot.meshes || {}; slot.meshes[attachment.name] = strip; return strip;