diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2005-01-22 05:48:03 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2005-01-22 05:48:03 +0300 |
commit | 1da3b9f517103f6e04312faf08ca7c71edf7d0dd (patch) | |
tree | 62fe0e630b657710eff98a11499d1a61ef77fb5e /source/blender/python/BPY_menus.c | |
parent | 5822d4601d7cf93155442ab653b54d3e3c03cae5 (diff) |
BPython:
- Stephane Soppera added long missed support for edge data in Blender.NMesh + related doc;
- Michael Reimpell improved script registration (fixes bug report #2160) and the file and image selectors in Blender.Window (improved with suggestions from Yann Vernier). They now suppport methods as callbacks;
- World.get/setMode were not registered, so could not be directly called (reported by Ken Hughes). Still needs some work to improve things, including docs.
Scripts:
- Jean-Michel Soler updated his texture baker based on input from Appolux;
- Campbell and Jean-Michel improved the bvh importer: faster, better float units scaling (by Campbell); supports Poser 3.01 files (by jms).
Thanks guys!
Diffstat (limited to 'source/blender/python/BPY_menus.c')
-rw-r--r-- | source/blender/python/BPY_menus.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/python/BPY_menus.c b/source/blender/python/BPY_menus.c index 6bae8fdf3e0..a67ada0cfee 100644 --- a/source/blender/python/BPY_menus.c +++ b/source/blender/python/BPY_menus.c @@ -647,14 +647,13 @@ static int bpymenu_CreateFromDir( char *dirname, int whichdir ) int scriptGroup; BPyMenu *scriptMenu = NULL; /* other */ - int scanDir = 1; int returnValue = 0; /* open directory stream */ dir = opendir(dirname); if (dir != NULL) { /* directory stream opened */ - while (((dirEntry = readdir(dir)) != NULL) && (scanDir == 1)) { + while ((dirEntry = readdir(dir)) != NULL) { /* Check if filename does not start with a dot, * ends with '.py' and is a regular file. */ BLI_make_file_string("/", fileName, dirname, dirEntry->d_name); @@ -722,10 +721,7 @@ static int bpymenu_CreateFromDir( char *dirname, int whichdir ) if (DEBUG) { fprintf(stderr, "BPyMenus error: Couldn't create entry for: %s\n", fileName); } - /* abort */ parserState = 0; - scanDir = 0; - returnValue = -2; } else { parserState++; } |