From c867a1f29e40028d589fa713b0cf38634b57b908 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Sun, 29 Sep 2013 16:50:27 +0200 Subject: [PATCH] Allow latest JSON format to be loaded. --- spine-lua/AttachmentLoader.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/spine-lua/AttachmentLoader.lua b/spine-lua/AttachmentLoader.lua index 01ce726d1..f62f1c73a 100644 --- a/spine-lua/AttachmentLoader.lua +++ b/spine-lua/AttachmentLoader.lua @@ -35,7 +35,8 @@ local RegionAttachment = require "spine-lua.RegionAttachment" local AttachmentLoader = { failed = {}, - ATTACHMENT_REGION = "region" + ATTACHMENT_REGION = "region", + ATTACHMENT_BOUNDINGBOX = "boundingbox", } function AttachmentLoader.new () local self = {} @@ -44,7 +45,10 @@ function AttachmentLoader.new () if type == AttachmentLoader.ATTACHMENT_REGION then return RegionAttachment.new(name) end - error("Unknown attachment type: " .. type .. " (" + name + ")") + if type == AttachmentLoader.ATTACHMENT_BOUNDINGBOX then + return nil -- BOZO - Implement bounding boxes. + end + error("Unknown attachment type: " .. type .. " (" .. name .. ")") end return self