diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-27 17:40:19 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-27 17:40:19 +0400 |
commit | 77f0be7fec206749bd3aadbe626c9db6944d8f3f (patch) | |
tree | 74d3c301860193a0e586ed8aa856c1ac54667530 /source/blender/python/mathutils/mathutils_Color.c | |
parent | 590251f55a113848043c8eb43563379f614f65f3 (diff) |
support unary positive operators for vectors (same as numpy), so you can do 'vector_a = +vector_b', this makes a copy.
Diffstat (limited to 'source/blender/python/mathutils/mathutils_Color.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_Color.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/mathutils/mathutils_Color.c b/source/blender/python/mathutils/mathutils_Color.c index 8a87938d825..05fc84eaa87 100644 --- a/source/blender/python/mathutils/mathutils_Color.c +++ b/source/blender/python/mathutils/mathutils_Color.c @@ -644,8 +644,8 @@ static PyNumberMethods Color_NumMethods = { NULL, /*nb_remainder*/ NULL, /*nb_divmod*/ NULL, /*nb_power*/ - (unaryfunc) Color_neg, /*nb_negative*/ - (unaryfunc) NULL, /*tp_positive*/ + (unaryfunc) Color_neg, /*nb_negative*/ + (unaryfunc) Color_copy, /*tp_positive*/ (unaryfunc) NULL, /*tp_absolute*/ (inquiry) NULL, /*tp_bool*/ (unaryfunc) NULL, /*nb_invert*/ |