mirror of https://github.com/axmolengine/axmol.git
Fix the bugs about the particle3DTest
This commit is contained in:
parent
ef1bccd926
commit
0181a84883
|
@ -61,9 +61,8 @@ local function baseInit(self)
|
||||||
local children = ps:getChildren()
|
local children = ps:getChildren()
|
||||||
for i= 1, #children do
|
for i= 1, #children do
|
||||||
local child = children[i]
|
local child = children[i]
|
||||||
if nil ~= child then
|
if nil ~= child and nil ~= child.getAliveParticleCount then
|
||||||
--UNDO
|
count = count + child:getAliveParticleCount()
|
||||||
count = count + #(child:getParticlePool():getActiveParticleList())
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue