Reset: drop FGLight prop refs on unbind()
This commit is contained in:
parent
0751556aab
commit
9a77efacd9
1 changed files with 5 additions and 0 deletions
|
@ -189,6 +189,11 @@ void FGLight::bind () {
|
|||
|
||||
void FGLight::unbind () {
|
||||
_tiedProperties.Untie();
|
||||
|
||||
for (int i = 0; i < 4; ++i)
|
||||
_chromeProps[i] = SGPropertyNode_ptr();
|
||||
_sunAngleRad = SGPropertyNode_ptr();
|
||||
_humidity = SGPropertyNode_ptr();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue