mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +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
|
||||
self.clipper:clipStart(slot, attachment)
|
||||
break -- continues for loop
|
||||
else
|
||||
self.clipper:clipEnd(slot)
|
||||
break -- continues for loop
|
||||
end
|
||||
|
||||
if texture then
|
||||
|
||||
@ -227,6 +227,8 @@ function spine.Skeleton:updateWorldTransform()
|
||||
end
|
||||
if not isClippingAttachment then self.clipper:clipEnd(slot) end
|
||||
end
|
||||
else
|
||||
self.clipper:clipEnd(slot)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user