示例#1
0
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
示例#2
0
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
示例#3
0
def fini():
    global s_weather
    if s_weather is not None:
        Personality.delCameraSpaceChangeListener(s_weather.onChangeSpace)
        s_weather = None
    return