PyAPI: add function to check any mathutils type
[blender.git] / source / blender / python / mathutils / mathutils_Vector.h
index 74ca3336f4bd13b3bf3a46ba4d86ac57a1acf64c..9ebf9457f2b2eb32dc21137df4b2cc2c68260481 100644 (file)
@@ -29,7 +29,9 @@
 #define __MATHUTILS_VECTOR_H__
 
 extern PyTypeObject vector_Type;
-#define VectorObject_Check(_v) PyObject_TypeCheck((_v), &vector_Type)
+
+#define VectorObject_Check(v) PyObject_TypeCheck((v), &vector_Type)
+#define VectorObject_CheckExact(v) (Py_TYPE(v) == &vector_Type)
 
 typedef struct {
        BASE_MATH_MEMBERS(vec);