forked from bartvdbraak/blender
didnt build before committiong this small change :/
isLight() is apricot only. Add this back when GLSL is merged to avoid conflicts.
This commit is contained in:
parent
c8d0a540f5
commit
794ffdcd2c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user