Merged 15170:15635 from trunk (no conflicts or even merges)
[blender.git] / source / gameengine / Ketsji / KX_PhysicsObjectWrapper.cpp
index 27cfaefc07695fc346b0abd655e5f12b917b7f98..2df4c6a99809c57880d651bf9c11f836cf6f8118 100644 (file)
@@ -58,6 +58,9 @@ PyObject* KX_PhysicsObjectWrapper::PySetPosition(PyObject* self,
        {
                m_ctrl->setPosition(x,y,z);
        }
+       else {
+               return NULL;
+       }
        Py_INCREF(Py_None); return Py_None;
 }
 
@@ -72,6 +75,9 @@ PyObject* KX_PhysicsObjectWrapper::PySetLinearVelocity(PyObject* self,
        {
                m_ctrl->SetLinearVelocity(x,y,z,local != 0);
        }
+       else {
+               return NULL;
+       }
        Py_INCREF(Py_None); return Py_None;
 }
 
@@ -85,6 +91,9 @@ PyObject* KX_PhysicsObjectWrapper::PySetAngularVelocity(PyObject* self,
        {
                m_ctrl->SetAngularVelocity(x,y,z,local != 0);
        }
+       else {
+               return NULL;
+       }
        Py_INCREF(Py_None); return Py_None;
 }
 
@@ -97,6 +106,9 @@ PyObject*    KX_PhysicsObjectWrapper::PySetActive(PyObject* self,
        {
                m_ctrl->SetActive(active!=0);
        }
+       else {
+               return NULL;
+       }
        Py_INCREF(Py_None); return Py_None;
 }