diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2005-02-09 08:19:24 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2005-02-09 08:19:24 +0300 |
commit | 05bf482f6a50bd711fc6bb7ad986919741d478ae (patch) | |
tree | 92954a8c8840ff02afec41a7b728f549dc5de6a6 /source/blender/python/api2_2x/Sys.c | |
parent | 955d5aa6eb1a2d3763fd6e3d98e10357cf58fd03 (diff) |
BPython:
- NMesh: made nmesh.update accept an optional 'vertex_shade' param to init vcols with shading info, like when you enter vpaint mode or press the relevant "make" button for a mesh without vcols. This is still a test, the functionality was requested by Manuel Bastioni for the SSS script they are working on:
http://www.dedalo-3d.com/index.php?filename=SXCOL/makehuman/articles/subsurface_scattering_in_python.html
- sys: made makename() accept files with max FILE_MAXDIR+FILE_MAXFILE name length, should fix #2192. Was only FILE_MAXFILE, a mistake;
- Image: added .setFilename(), contributed by Campbell Barton;
- Camera: added camera.get/setScale for the new param added by Ton for ortho cameras. Requested by Jean-Michel Soler for the Texture Baker script;
- related doc updates.
Diffstat (limited to 'source/blender/python/api2_2x/Sys.c')
-rw-r--r-- | source/blender/python/api2_2x/Sys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Sys.c b/source/blender/python/api2_2x/Sys.c index 708c9c8fbb1..2d8ae8febfc 100644 --- a/source/blender/python/api2_2x/Sys.c +++ b/source/blender/python/api2_2x/Sys.c @@ -303,7 +303,7 @@ static PyObject *M_sys_makename( PyObject * self, PyObject * args, char *path = G.sce, *ext = NULL; int strip = 0; static char *kwlist[] = { "path", "ext", "strip", NULL }; - char *dot = NULL, *p = NULL, basename[FILE_MAXFILE]; + char *dot = NULL, *p = NULL, basename[FILE_MAXDIR + FILE_MAXFILE]; char sep; int n, len, lenext = 0; PyObject *c; @@ -317,7 +317,7 @@ static PyObject *M_sys_makename( PyObject * self, PyObject * args, if( ext ) lenext = strlen( ext ) + 1; - if( ( len + lenext ) > FILE_MAXFILE ) + if( ( len + lenext ) > FILE_MAXDIR + FILE_MAXFILE ) return EXPP_ReturnPyObjError( PyExc_RuntimeError, "path too long" ); |