Fix bad string concat in error messages in spine lua runtime. (#2021)

This commit is contained in:
Matt Roelle 2022-01-15 07:20:06 -08:00 committed by GitHub
parent 2ca3b6462b
commit 0407bd8302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -750,7 +750,7 @@ end
function AnimationState:addAnimationByName (trackIndex, animationName, loop, delay)
local animation = self.data.skeletonData:findAnimation(animationName)
if not animation then error("Animation not found: " + animationName, 2) end
if not animation then error("Animation not found: " .. animationName, 2) end
return self:addAnimation(trackIndex, animation, loop, delay)
end

View File

@ -317,7 +317,7 @@ function SkeletonJson.new (attachmentLoader)
if linkedMesh.skin then skin = skeletonData:findSkin(linkedMesh.skin) end
if not skin then error("Skin not found: " .. linkedMesh.skin) end
local parent = skin:getAttachment(linkedMesh.slotIndex, linkedMesh.parent)
if not parent then error("Parent mesh not found: " + linkedMesh.parent) end
if not parent then error("Parent mesh not found: " .. linkedMesh.parent) end
if linkedMesh.inheritDeform then
linkedMesh.mesh.deformAttachment = parent
else
@ -486,7 +486,7 @@ function SkeletonJson.new (attachmentLoader)
local _end = getValue(map, "end", nil)
if _end then
local slot = skeletonData:findSlot(_end)
if not slot then error("Clipping end slot not found: " + _end) end
if not slot then error("Clipping end slot not found: " .. _end) end
clip.endSlot = slot
end