didnt build before committiong this small change :/
authorCampbell Barton <ideasman42@gmail.com>
Thu, 28 Aug 2008 09:02:04 +0000 (09:02 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 28 Aug 2008 09:02:04 +0000 (09:02 +0000)
isLight() is apricot only. Add this back when GLSL is merged to avoid conflicts.

source/gameengine/Ketsji/KX_Scene.cpp

index e0a7ebb542311e07f24b68a2b8425c592404d679..1c37fcea77e060c09ac4a709961a19200a031cea 100644 (file)
@@ -944,7 +944,7 @@ int KX_Scene::NewRemoveObject(class CValue* gameobj)
        
        newobj->RemoveMeshes();
        ret = 1;
-       if (newobj->IsLight() && m_lightlist->RemoveValue(newobj))
+       if (m_lightlist->RemoveValue(newobj)) // TODO - use newobj->IsLight() test when its merged in from apricot. - Campbell
                ret = newobj->Release();
        if (m_objectlist->RemoveValue(newobj))
                ret = newobj->Release();