option to build the BGE without python, uses existing python check (cmake and scons)
when python is disabled videotextures are not built.
This commit is contained in:
@@ -163,6 +163,7 @@ void KX_SCA_AddObjectActuator::Relink(GEN_Map<GEN_HashedPtr, void*> *obj_map)
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef DISABLE_PYTHON
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* Python functions */
|
||||
@@ -242,6 +243,14 @@ PyObject* KX_SCA_AddObjectActuator::pyattr_get_objectLastCreated(void *self, con
|
||||
return actuator->m_lastCreatedObject->GetProxy();
|
||||
}
|
||||
|
||||
PyObject* KX_SCA_AddObjectActuator::PyInstantAddObject()
|
||||
{
|
||||
InstantAddObject();
|
||||
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
#endif // DISABLE_PYTHON
|
||||
|
||||
void KX_SCA_AddObjectActuator::InstantAddObject()
|
||||
{
|
||||
@@ -277,10 +286,3 @@ void KX_SCA_AddObjectActuator::InstantAddObject()
|
||||
replica->Release();
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* KX_SCA_AddObjectActuator::PyInstantAddObject()
|
||||
{
|
||||
InstantAddObject();
|
||||
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user