diff options
Diffstat (limited to 'source/gameengine/VideoTexture/BlendType.h')
-rw-r--r-- | source/gameengine/VideoTexture/BlendType.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/gameengine/VideoTexture/BlendType.h b/source/gameengine/VideoTexture/BlendType.h index 0131cc61c44..e19aadc49d2 100644 --- a/source/gameengine/VideoTexture/BlendType.h +++ b/source/gameengine/VideoTexture/BlendType.h @@ -37,7 +37,7 @@ public: BlendType (const char * name) : m_name(name) {} /// check blender type and return pointer to contained object or NULL (if type is not valid) - PyObj * checkType (PyObject * obj) + PyObj *checkType(PyObject *obj) { // if pointer to type isn't set if (m_objType == NULL) @@ -55,17 +55,18 @@ public: return NULL; // return pointer to object, this class can only be used for KX object => // the Py object is actually a proxy - return (PyObj*)BGE_PROXY_REF(obj); + return (PyObj *)BGE_PROXY_REF(obj); } /// parse arguments to get object - PyObj * parseArg (PyObject * args) + PyObj *parseArg(PyObject *args) { // parse arguments - PyObject * obj; - if (PyArg_ParseTuple(args, "O", &obj)) + PyObject *obj; + if (PyArg_ParseTuple(args, "O", &obj)) { // if successfully parsed, return pointer to object return checkType(obj); + } // otherwise return NULL return NULL; } @@ -74,7 +75,7 @@ protected: /// name of Python type const char * m_name; /// pointer to Python type - PyTypeObject * m_objType; + PyTypeObject *m_objType; }; |