BPython:
- fixed two warnings, unused var in Object.c and undeclared function in script.c - updated Blender.Draw doc, it was missing info about Button object - refactored pytype initialization to try to fix for once platform (and distro!) specific crashes on startup. This asked for tiny updates in Effect.[ch] (removed static from declaration, moved definitions to the .c file) and modules.h - fixed error I made trying to fix scripts w/ no [eol] char in menus. Thanks Michael Velikanje for reporting the problem!
This commit is contained in:
@@ -611,8 +611,8 @@ int BPY_menu_do_python(short menutype, int event)
|
||||
buffer = MEM_mallocN(len+2, "pyfilebuf"); /* len+2 to add '\n\0' */
|
||||
len = fread(buffer, 1, len, fp);
|
||||
|
||||
buffer[len-1] = '\n'; /* to fix potential syntax error */
|
||||
buffer[len] = '\0';
|
||||
buffer[len] = '\n'; /* fix syntax error in files w/o eol*/
|
||||
buffer[len+1] = '\0';
|
||||
|
||||
/* fast clean-up of dos cr/lf line endings: change '\r' to space */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user