| 2374 | } |
| 2375 | |
| 2376 | void ParticleBatchHybrid::switchRender(float dt) |
| 2377 | { |
| 2378 | bool usingBatch = (_emitter->getBatchNode() != nullptr); |
| 2379 | _emitter->removeFromParentAndCleanup(false); |
| 2380 | |
| 2381 | auto newParent = (usingBatch ? _parent2 : _parent1); |
| 2382 | newParent->addChild(_emitter); |
| 2383 | |
| 2384 | AXLOGD("Particle: Using new parent: {}", usingBatch ? "Node" : "ParticleBatchNode"); |
| 2385 | } |
| 2386 | |
| 2387 | std::string ParticleBatchHybrid::title() const |
| 2388 | { |
nothing calls this directly
no test coverage detected