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_BBox.h')
-rw-r--r--source/blender/freestyle/intern/python/BPy_BBox.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_BBox.h b/source/blender/freestyle/intern/python/BPy_BBox.h
index 88bba3301bb..90fbc565b33 100644
--- a/source/blender/freestyle/intern/python/BPy_BBox.h
+++ b/source/blender/freestyle/intern/python/BPy_BBox.h
@@ -15,7 +15,7 @@ extern "C" {
extern PyTypeObject BBox_Type;
-#define BPy_BBox_Check(v) (( (PyObject *) v)->ob_type == &BBox_Type)
+#define BPy_BBox_Check(v) ( PyObject_IsInstance( (PyObject *) v, (PyObject *) &BBox_Type) )
/*---------------------------Python BPy_BBox structure definition----------*/
typedef struct {