From 7e2bd632ea23ba7af5c14d92a1134cb275120dba Mon Sep 17 00:00:00 2001 From: badlogic Date: Tue, 2 May 2017 14:03:31 +0200 Subject: [PATCH] [lua] Fixed bug in Slot, attachment vertices didn't get cleared upon Slot:setAttachment call --- spine-lua/Slot.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spine-lua/Slot.lua b/spine-lua/Slot.lua index 8e3d4ba9d..103a784b2 100644 --- a/spine-lua/Slot.lua +++ b/spine-lua/Slot.lua @@ -45,8 +45,7 @@ function Slot.new (data, bone) color = Color.newWith(1, 1, 1, 1), attachment = nil, attachmentTime = 0, - attachmentVertices = {}, - attachmentVerticesCount = 0 + attachmentVertices = {} } setmetatable(self, Slot) @@ -59,7 +58,7 @@ function Slot:setAttachment (attachment) if self.attachment == attachment then return end self.attachment = attachment self.attachmentTime = self.bone.skeleton.time - self.attachmentVerticesCount = 0 + self.attachmentVertices = {} end function Slot:setAttachmentTime (time)