Projects > cpp > Issues > Bug #4573

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Set particle visible to false then set to true cause crashes.

Bug #4573 [Closed]
boyu0 2014-03-27 04:06 . Updated about 9 years ago

Add these code to any Particle Demo:
schedule(schedule_selector(DemoFlower::test), 2.0f);
void DemoFlower::test(float delta)
{
_emitter->setVisible(!_emitter->isVisible());
}

Crash at ParticleSystemQuad::draw:
CCASSERT( _particleIdx == _particleCount, "Abnormal error in particle quad");

boyu0 2014-03-31 09:01
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:b676b4df05cc01a0afa2935a86a21cf43b9c4908.

Atom PDF

Status:Closed
Start date:2014-03-27
Priority:Normal
Due date:
Assignee:boyu0
% Done:

100%

Category:all
Target version:3.0-rc1