Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-08-27 17:40:19 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-27 17:40:19 +0400
commit77f0be7fec206749bd3aadbe626c9db6944d8f3f (patch)
tree74d3c301860193a0e586ed8aa856c1ac54667530 /source/blender/python/mathutils/mathutils_Quaternion.c
parent590251f55a113848043c8eb43563379f614f65f3 (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.c2
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*/