- 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:
@@ -40,6 +40,7 @@ struct _object; // forward declaration for PyObject !
|
|||||||
|
|
||||||
void BPY_start_python(void);
|
void BPY_start_python(void);
|
||||||
void BPY_end_python(void);
|
void BPY_end_python(void);
|
||||||
|
void BPY_syspath_append_pythondir(void);
|
||||||
int BPY_Err_getLinenumber(void);
|
int BPY_Err_getLinenumber(void);
|
||||||
const char *BPY_Err_getFilename(void);
|
const char *BPY_Err_getFilename(void);
|
||||||
void BPY_Err_Handle(struct Text *text);
|
void BPY_Err_Handle(struct Text *text);
|
||||||
|
@@ -231,6 +231,17 @@ void init_syspath(void)
|
|||||||
BPY_debug(("append done\n"));
|
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
|
#define FILENAME_LENGTH 24
|
||||||
typedef struct _ScriptError {
|
typedef struct _ScriptError {
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user