From bf1e2ce41ebf3dab1647d28588f951b5e587aa3e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 28 Mar 2011 13:47:39 +0000 Subject: [PATCH] color gamma (such as theme colors), were not being wrapped by python as 'mathutils.Color' types --- source/blender/python/intern/bpy_rna.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index ecf66ca4700..9a459063d42 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -640,6 +640,7 @@ PyObject *pyrna_math_object_from_array(PointerRNA *ptr, PropertyRNA *prop) } break; case PROP_COLOR: + case PROP_COLOR_GAMMA: if(len==3) { /* color */ if(is_thick) { ret= newColorObject(NULL, Py_NEW, NULL); // TODO, get order from RNA