- Trying to fix something I caused:

Added a function call to creator.c that is needed by exppython, but forgot
    to add the function also to the old bpython implementation.  Thanks, Hos!
- Addition in Draw.Text and Draw.GetStringWidth (Python Draw methods):
    Now script writers can select the font size: normal, small or tiny.
This commit is contained in:
2003-06-29 14:35:49 +00:00
parent 0ff572954e
commit 389c7e101e
3 changed files with 578 additions and 546 deletions

View File

@@ -40,6 +40,7 @@ struct _object; // forward declaration for PyObject !
void BPY_start_python(void);
void BPY_end_python(void);
void BPY_syspath_append_pythondir(void);
int BPY_Err_getLinenumber(void);
const char *BPY_Err_getFilename(void);
void BPY_Err_Handle(struct Text *text);

View File

@@ -231,6 +231,17 @@ void init_syspath(void)
BPY_debug(("append done\n"));
}
/*****************************************************************************/
/* Description: This function adds the user defined folder for Python */
/* scripts to sys.path. This is done in init_syspath, too, but */
/* when Blender's main() runs BPY_start_python(), U.pythondir */
/* isn't set yet, so we provide this function to be executed */
/* after U.pythondir is defined. */
/*****************************************************************************/
void BPY_syspath_append_pythondir(void)
{
syspath_append(Py_BuildValue("s", U.pythondir));
}
#define FILENAME_LENGTH 24
typedef struct _ScriptError {

File diff suppressed because it is too large Load Diff