mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[solar2d] Closes #1749, check if removeSelf is available on draw group
This commit is contained in:
parent
20873f249f
commit
f70363b1a6
3
.gitignore
vendored
3
.gitignore
vendored
@ -108,8 +108,7 @@ spine-tk2d/*.sln
|
|||||||
spine-tk2d/Assets/TK2DROOT*
|
spine-tk2d/Assets/TK2DROOT*
|
||||||
spine-tk2d/Assets/-tk2d*
|
spine-tk2d/Assets/-tk2d*
|
||||||
|
|
||||||
spine-corona/spine-lua/
|
spine-solar2d/spine-lua/
|
||||||
!spine-corona/spine-lua/Place spine-lua here.txt
|
|
||||||
|
|
||||||
spine-love/spine-lua/
|
spine-love/spine-lua/
|
||||||
spine-love/love/
|
spine-love/love/
|
||||||
|
|||||||
@ -133,7 +133,7 @@ function spine.Skeleton:updateWorldTransform()
|
|||||||
if (self.vertexEffect) then self.vertexEffect:beginEffect(self) end
|
if (self.vertexEffect) then self.vertexEffect:beginEffect(self) end
|
||||||
|
|
||||||
-- Remove old drawing group, we will start anew
|
-- Remove old drawing group, we will start anew
|
||||||
if self.drawingGroup then self.drawingGroup:removeSelf() end
|
if self.drawingGroup and self.drawingGroup.removeSelf then self.drawingGroup:removeSelf() end
|
||||||
local drawingGroup = display.newGroup()
|
local drawingGroup = display.newGroup()
|
||||||
self.drawingGroup = drawingGroup
|
self.drawingGroup = drawingGroup
|
||||||
self.group:insert(drawingGroup)
|
self.group:insert(drawingGroup)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user