mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -470,7 +470,7 @@ void SCA_PythonController::Trigger(SCA_LogicManager* logicmgr)
|
|||
PyObject *SCA_PythonController::PyActivate(PyObject *value)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
@ -485,7 +485,7 @@ PyObject *SCA_PythonController::PyActivate(PyObject *value)
|
|||
PyObject *SCA_PythonController::PyDeActivate(PyObject *value)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue