mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 10:16:01 +08:00
[lua] Ensure clipper.clipEnd() is called appropriately. See #1694
This commit is contained in:
parent
4be695bf28
commit
3f735ed0be
@ -352,6 +352,9 @@ function SkeletonRenderer:draw (skeleton)
|
|||||||
elseif attachment.type == spine.AttachmentType.clipping then
|
elseif attachment.type == spine.AttachmentType.clipping then
|
||||||
self.clipper:clipStart(slot, attachment)
|
self.clipper:clipStart(slot, attachment)
|
||||||
break -- continues for loop
|
break -- continues for loop
|
||||||
|
else
|
||||||
|
self.clipper:clipEnd(slot)
|
||||||
|
break -- continues for loop
|
||||||
end
|
end
|
||||||
|
|
||||||
if texture then
|
if texture then
|
||||||
|
|||||||
@ -227,6 +227,8 @@ function spine.Skeleton:updateWorldTransform()
|
|||||||
end
|
end
|
||||||
if not isClippingAttachment then self.clipper:clipEnd(slot) end
|
if not isClippingAttachment then self.clipper:clipEnd(slot) end
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
self.clipper:clipEnd(slot)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user