def fini(): """ This function releases the new weather system. While not necessary for memory leak reasons (as when scripts are shutdown, this python object is also released,) we want explicit control over when the weather system singleton is released. """ global s_weather if s_weather is not None: Personality.delCameraSpaceChangeListener(s_weather.onChangeSpace) s_weather = None
def fini(): global s_weather if s_weather is not None: Personality.delCameraSpaceChangeListener(s_weather.onChangeSpace) s_weather = None return