[Bf-blender-cvs] [ce85aef] master: mathutils: remove redundant read callback

Campbell Barton noreply at git.blender.org
Sun Feb 15 04:06:11 CET 2015


Commit: ce85aef0d9f2df094f2859236dc75a2c7f70bfcd
Author: Campbell Barton
Date:   Sun Feb 15 11:46:43 2015 +1100
Branches: master
https://developer.blender.org/rBce85aef0d9f2df094f2859236dc75a2c7f70bfcd

mathutils: remove redundant read callback

===================================================================

M	source/blender/python/mathutils/mathutils_Vector.c

===================================================================

diff --git a/source/blender/python/mathutils/mathutils_Vector.c b/source/blender/python/mathutils/mathutils_Vector.c
index ef6b2c9..500a922 100644
--- a/source/blender/python/mathutils/mathutils_Vector.c
+++ b/source/blender/python/mathutils/mathutils_Vector.c
@@ -1123,9 +1123,6 @@ static PyObject *Vector_project(VectorObject *self, PyObject *value)
 	double dot = 0.0f, dot2 = 0.0f;
 	int x;
 
-	if (BaseMath_ReadCallback(self) == -1)
-		return NULL;
-
 	if (mathutils_array_parse(tvec, size, size, value, "Vector.project(other), invalid 'other' arg") == -1)
 		return NULL;




More information about the Bf-blender-cvs mailing list