| 143 | "@ingroup Lighting\n" ); |
| 144 | |
| 145 | void LightManager::deactivate() |
| 146 | { |
| 147 | AssertFatal( mIsActive == true, "LightManager::deactivate() - Already deactivated!" ); |
| 148 | AssertFatal( smActiveLM == this, "LightManager::activate() - This isn't the active light manager!" ); |
| 149 | |
| 150 | if( Sim::getRootGroup() ) // To protect against shutdown. |
| 151 | onLightManagerDeactivate_callback( getName() ); |
| 152 | |
| 153 | mIsActive = false; |
| 154 | mSceneManager = NULL; |
| 155 | smActiveLM = NULL; |
| 156 | |
| 157 | // Just in case... make sure we're all clear. |
| 158 | unregisterAllLights(); |
| 159 | } |
| 160 | |
| 161 | LightInfo* LightManager::getDefaultLight() |
| 162 | { |
no test coverage detected