Fix the bugs about the particle3DTest

This commit is contained in:
samuele3hu 2015-06-22 09:27:34 +08:00
parent ef1bccd926
commit 0181a84883
1 changed files with 2 additions and 3 deletions

View File

@ -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