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_Quaternion.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_Quaternion.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_Quaternion.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/mathutils/mathutils_Quaternion.c b/source/blender/python/mathutils/mathutils_Quaternion.c index 40c0215ffd1..b595dab494d 100644 --- a/source/blender/python/mathutils/mathutils_Quaternion.c +++ b/source/blender/python/mathutils/mathutils_Quaternion.c @@ -903,7 +903,7 @@ static PyNumberMethods Quaternion_NumMethods = { NULL, /*nb_divmod*/ NULL, /*nb_power*/ (unaryfunc) Quaternion_neg, /*nb_negative*/ - (unaryfunc) 0, /*tp_positive*/ + (unaryfunc) Quaternion_copy,/*tp_positive*/ (unaryfunc) 0, /*tp_absolute*/ (inquiry) 0, /*tp_bool*/ (unaryfunc) 0, /*nb_invert*/ |