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>2009-09-13 12:41:13 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-09-13 12:41:13 +0400
commita917abee898b9d1a5ea9628391f095807b092cf3 (patch)
tree2eeff74db65b7da8f0b329660c942b73bebb92ed
parent3a62892a955375b5716f84eab9d0c25c2ea58560 (diff)
[#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.
-rw-r--r--source/blender/python/api2_2x/Blender.c2
1 files changed, 1 insertions, 1 deletions
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 ) )