remove particle node when resetting particle effect

pull/3222/head
glassmancody.info 3 years ago
parent f684c1da52
commit 4c3dd1a964

@ -535,7 +535,11 @@ namespace MWRender
mRootNode->setNodeMask(enabled ? Mask_Sky : 0u);
if (!enabled && mParticleNode && mParticleEffect)
mCurrentParticleEffect = {};
{
mCurrentParticleEffect.clear();
mParticleNode->removeChild(mParticleEffect);
mParticleEffect = nullptr;
}
mEnabled = enabled;
}

Loading…
Cancel
Save