color gamma (such as theme colors), were not being wrapped by python as 'mathutils.Color' types

This commit is contained in:
Campbell Barton 2011-03-28 13:47:39 +00:00
parent 3916b0270e
commit bf1e2ce41e

@ -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