Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_MediumType.h')
-rw-r--r--source/blender/freestyle/intern/python/BPy_MediumType.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_MediumType.h b/source/blender/freestyle/intern/python/BPy_MediumType.h
index d56594e0f68..9b4ff5a2fd9 100644
--- a/source/blender/freestyle/intern/python/BPy_MediumType.h
+++ b/source/blender/freestyle/intern/python/BPy_MediumType.h
@@ -13,7 +13,7 @@ extern "C" {
extern PyTypeObject MediumType_Type;
-#define BPy_MediumType_Check(v) (( (PyObject *) v)->ob_type == &MediumType_Type)
+#define BPy_MediumType_Check(v) ( PyObject_IsInstance( (PyObject *) v, (PyObject *) &MediumType_Type) )
/*---------------------------Python BPy_MediumType structure definition----------*/
typedef struct {