Reset: Add some missing prop clears on unbind
This commit is contained in:
parent
977bfb06bf
commit
095be63be4
2 changed files with 4 additions and 1 deletions
|
@ -141,6 +141,8 @@ void TimeManager::unbind()
|
||||||
_frameRate.clear();
|
_frameRate.clear();
|
||||||
_frameLatency.clear();
|
_frameLatency.clear();
|
||||||
_frameRateWorst.clear();
|
_frameRateWorst.clear();
|
||||||
|
_frameWait.clear();
|
||||||
|
_maxFrameRate.clear();
|
||||||
|
|
||||||
_sceneryLoaded.clear();
|
_sceneryLoaded.clear();
|
||||||
_modelHz.clear();
|
_modelHz.clear();
|
||||||
|
|
|
@ -206,6 +206,7 @@ void FGLight::unbind () {
|
||||||
for (int i = 0; i < 4; ++i)
|
for (int i = 0; i < 4; ++i)
|
||||||
_chromeProps[i] = SGPropertyNode_ptr();
|
_chromeProps[i] = SGPropertyNode_ptr();
|
||||||
_sunAngleRad = SGPropertyNode_ptr();
|
_sunAngleRad = SGPropertyNode_ptr();
|
||||||
|
_moonAngleRad.reset();
|
||||||
_humidity = SGPropertyNode_ptr();
|
_humidity = SGPropertyNode_ptr();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue