From 9a77efacd9b28893599655c056a2fa399859f663 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 5 Nov 2013 05:30:11 +0000 Subject: [PATCH] Reset: drop FGLight prop refs on unbind() --- src/Time/light.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Time/light.cxx b/src/Time/light.cxx index 3d59e804a..5cdf21c33 100644 --- a/src/Time/light.cxx +++ b/src/Time/light.cxx @@ -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(); } -- 2.39.5