[Bf-blender-cvs] [3e49787] master: Python API: give a better error message when creating a Matrix fails

Campbell Barton noreply at git.blender.org
Thu Nov 28 23:49:13 CET 2013


Commit: 3e49787b01160b21a3b349c77c279eae5dccffb3
Author: Campbell Barton
Date:   Fri Nov 29 09:47:11 2013 +1100
http://developer.blender.org/rB3e49787b01160b21a3b349c77c279eae5dccffb3

Python API: give a better error message when creating a Matrix fails

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

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

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

diff --git a/source/blender/python/mathutils/mathutils_Matrix.c b/source/blender/python/mathutils/mathutils_Matrix.c
index 3e5dcc2..ccff114 100644
--- a/source/blender/python/mathutils/mathutils_Matrix.c
+++ b/source/blender/python/mathutils/mathutils_Matrix.c
@@ -378,7 +378,7 @@ static PyObject *Matrix_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
 	/* will overwrite error */
 	PyErr_SetString(PyExc_TypeError,
 	                "Matrix(): "
-	                "expects no args or 2-4 numeric sequences");
+	                "expects no args or a single arg containing 2-4 numeric sequences");
 	return NULL;
 }




More information about the Bf-blender-cvs mailing list