From 3cad3521a9f387aea138bb9133f5d4316ec7121b Mon Sep 17 00:00:00 2001 From: Andrew Hale Date: Mon, 16 Jan 2012 09:01:11 +0000 Subject: Change function for nb_invert so that ~matrix returns the inverted matrix rather than inverting inplace. --- source/blender/python/mathutils/mathutils_Matrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python/mathutils') diff --git a/source/blender/python/mathutils/mathutils_Matrix.c b/source/blender/python/mathutils/mathutils_Matrix.c index f10d8c48c92..e588389b322 100644 --- a/source/blender/python/mathutils/mathutils_Matrix.c +++ b/source/blender/python/mathutils/mathutils_Matrix.c @@ -2049,7 +2049,7 @@ static PyNumberMethods Matrix_NumMethods = { (unaryfunc) 0, /*tp_positive*/ (unaryfunc) 0, /*tp_absolute*/ (inquiry) 0, /*tp_bool*/ - (unaryfunc) Matrix_inv, /*nb_invert*/ + (unaryfunc) Matrix_inverted, /*nb_invert*/ NULL, /*nb_lshift*/ (binaryfunc)0, /*nb_rshift*/ NULL, /*nb_and*/ -- cgit v1.2.3