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()
for i= 1, #children do
local child = children[i]
if nil ~= child then
--UNDO
count = count + #(child:getParticlePool():getActiveParticleList())
if nil ~= child and nil ~= child.getAliveParticleCount then
count = count + child:getAliveParticleCount()
end
end