示例#1
0
void TSStatic::_updateShouldTick()
{
   bool shouldTick = mPlayAmbient && mAmbientThread;

   if ( isTicking() != shouldTick )
      setProcessTick( shouldTick );
}
示例#2
0
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();
}