diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-11-03 17:10:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-11-03 17:10:37 +0400 |
commit | d210703bcaf89014495f761797ae50f362394697 (patch) | |
tree | e4a4eeaf57f5fc67e607e7d597c25b21677b7da1 /source/gameengine/VideoTexture/BlendType.h | |
parent | 0e51c9014c6a1cbdfe916edf79d1ca05d796e1fd (diff) |
use Py_TYPE macro (no functional changes)
Diffstat (limited to 'source/gameengine/VideoTexture/BlendType.h')
-rw-r--r-- | source/gameengine/VideoTexture/BlendType.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/gameengine/VideoTexture/BlendType.h b/source/gameengine/VideoTexture/BlendType.h index 4d63031a363..fad23af922e 100644 --- a/source/gameengine/VideoTexture/BlendType.h +++ b/source/gameengine/VideoTexture/BlendType.h @@ -43,15 +43,15 @@ public: if (m_objType == NULL) { // compare names of type - if (strcmp(obj->ob_type->tp_name, m_name) == 0) + if (strcmp(Py_TYPE(obj)->tp_name, m_name) == 0) // if name of type match, save pointer to type - m_objType = obj->ob_type; + m_objType = Py_TYPE(obj); else // if names of type don't match, return NULL return NULL; } // if pointer to type is set and don't match to type of provided object, return NULL - else if (obj->ob_type != m_objType) + else if (Py_TYPE(obj) != m_objType) return NULL; // return pointer to object, this class can only be used for KX object => // the Py object is actually a proxy |