void TSStatic::_updateShouldTick() { bool shouldTick = mPlayAmbient && mAmbientThread; if ( isTicking() != shouldTick ) setProcessTick( shouldTick ); }
void VolumetricFog::onRemove() { if (isClientObject()) { if (isTicking()) { setProcessTick(false); if (mGlowing != 0) { mGlowing = 0; glowFX->disable(); } _leaveFog(static_cast<ShapeBase*>(conn->getControlObject())); } VolumetricFogRTManager::getVolumetricFogRTMResizeSignal().remove(this, &VolumetricFog::handleResize); GuiCanvas::getCanvasSizeChangeSignal().remove(this, &VolumetricFog::handleCanvasResize); } removeFromScene(); VFRTM->DecFogObjects(); Parent::onRemove(); }