PyAPI: add function to check any mathutils type
[blender.git] / source / blender / python / mathutils / mathutils_Color.h
index 1290f73da62bd1195fc64a27f5347ab0b7ed0fbe..e1a392de3da895c66f220d66974645841ac31c50 100644 (file)
@@ -30,7 +30,8 @@
 #define __MATHUTILS_COLOR_H__
 
 extern PyTypeObject color_Type;
 #define __MATHUTILS_COLOR_H__
 
 extern PyTypeObject color_Type;
-#define ColorObject_Check(_v) PyObject_TypeCheck((_v), &color_Type)
+#define ColorObject_Check(v) PyObject_TypeCheck((v), &color_Type)
+#define ColorObject_CheckExact(v) (Py_TYPE(v) == &color_Type)
 
 typedef struct {
        BASE_MATH_MEMBERS(col);
 
 typedef struct {
        BASE_MATH_MEMBERS(col);