forked from bartvdbraak/blender
BGE: make error message more clear when trying to de/activate actuator from non-active controller
This commit is contained in:
parent
dbe1829183
commit
07a7d64c06
@ -470,7 +470,7 @@ void SCA_PythonController::Trigger(SCA_LogicManager* logicmgr)
|
|||||||
PyObject *SCA_PythonController::PyActivate(PyObject *value)
|
PyObject *SCA_PythonController::PyActivate(PyObject *value)
|
||||||
{
|
{
|
||||||
if (m_sCurrentController != this) {
|
if (m_sCurrentController != this) {
|
||||||
PyErr_SetString(PyExc_SystemError, "Cannot add an actuator from a non-active controller");
|
PyErr_SetString(PyExc_SystemError, "Cannot activate an actuator from a non-active controller");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -485,7 +485,7 @@ PyObject *SCA_PythonController::PyActivate(PyObject *value)
|
|||||||
PyObject *SCA_PythonController::PyDeActivate(PyObject *value)
|
PyObject *SCA_PythonController::PyDeActivate(PyObject *value)
|
||||||
{
|
{
|
||||||
if (m_sCurrentController != this) {
|
if (m_sCurrentController != this) {
|
||||||
PyErr_SetString(PyExc_SystemError, "Cannot add an actuator from a non-active controller");
|
PyErr_SetString(PyExc_SystemError, "Cannot deactivate an actuator from a non-active controller");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user