diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-28 17:47:39 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-28 17:47:39 +0400 |
commit | bf1e2ce41ebf3dab1647d28588f951b5e587aa3e (patch) | |
tree | 7c1723c3a764de9e183da1c8b9b4c830136fd5a2 /source | |
parent | 3916b0270e7aeff4bd0861aa4bb76f40633b606a (diff) |
color gamma (such as theme colors), were not being wrapped by python as 'mathutils.Color' types
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |