From a917abee898b9d1a5ea9628391f095807b092cf3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 13 Sep 2009 08:41:13 +0000 Subject: [#19290] Blender.Load(filename) -> FILE_MAXDIR to FILE_MAXDIR + FILE_MAXFILE and unused argument removed only changed the FILE_MAXDIR -> FILE_MAXDIR + FILE_MAXFILE part since its possible scripts use this undocumented arg. --- source/blender/python/api2_2x/Blender.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/python/api2_2x/Blender.c b/source/blender/python/api2_2x/Blender.c index fd316eb484f..282d8d5d87d 100644 --- a/source/blender/python/api2_2x/Blender.c +++ b/source/blender/python/api2_2x/Blender.c @@ -615,7 +615,7 @@ static PyObject *Blender_Load( PyObject * self, PyObject * args ) "expected filename and optional int or nothing as arguments" ); if( fname ) { - if( strlen( fname ) > FILE_MAXDIR ) /* G.main->name's max length */ + if( strlen( fname ) > FILE_MAXDIR + FILE_MAXFILE ) /* G.main->name's max length */ return EXPP_ReturnPyObjError( PyExc_AttributeError, "filename too long!" ); else if( !BLI_exists( fname ) ) -- cgit v1.2.3