svn merge -r 15392:15551 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / gameengine / Ketsji / KX_Camera.cpp
index 27e47d72bbe9b1f1486fdbd67be63b42d496fee0..3830d42213866a941b8da300fa035c1367a742f4 100644 (file)
@@ -588,7 +588,7 @@ KX_PYMETHODDEF_DOC(KX_Camera, sphereInsideFrustum,
 
        PyErr_SetString(PyExc_TypeError, "sphereInsideFrustum: Expected arguments: (center, radius)");
        
-       Py_Return;
+       return NULL;
 }
 
 KX_PYMETHODDEF_DOC(KX_Camera, boxInsideFrustum,
@@ -766,6 +766,10 @@ KX_PYMETHODDEF_DOC(KX_Camera, enableViewport,
                else
                        EnableViewport(false);
        }
+       else {
+               return NULL;
+       }
+       
        Py_Return;
 }
 
@@ -777,6 +781,8 @@ KX_PYMETHODDEF_DOC(KX_Camera, setViewport,
        if (PyArg_ParseTuple(args,"iiii",&left, &bottom, &right, &top))
        {
                SetViewport(left, bottom, right, top);
+       } else {
+               return NULL;
        }
        Py_Return;
 }