BPython - first step for better integration of Python in Blender:
- add a new space: Space Script - add a new dna struct: Script - add these two properly everywhere they are meant to It's not a tiny commit, but most of it is ground work for what is still to be done. Right now the benefits should be: freeing the Text Editor to be used in a window even while a script w/ gui in "on" and letting more than one currently running script w/ gui be accessible from each window Some files are added, so some build systems (not autotools) will need updates
This commit is contained in:
@@ -41,6 +41,8 @@ struct ID; /* defined in DNA_ID.h */
|
||||
struct ScriptLink; /* defined in DNA_scriptlink_types.h */
|
||||
struct ListBase; /* defined in DNA_listBase.h */
|
||||
struct SpaceText; /* defined in DNA_space_types.h */
|
||||
struct SpaceScript;/* defined in DNA_space_types.h */
|
||||
struct Script; /* defined in DNA_script_types.h */
|
||||
/*
|
||||
struct _object; // forward declaration for PyObject !
|
||||
*/
|
||||
@@ -51,7 +53,7 @@ void BPY_syspath_append_pythondir(void);
|
||||
int BPY_Err_getLinenumber(void);
|
||||
const char *BPY_Err_getFilename(void);
|
||||
/* void BPY_Err_Handle(struct Text *text); */
|
||||
struct _object *BPY_txt_do_python(struct SpaceText* st);
|
||||
int BPY_txt_do_python(struct SpaceText* st);
|
||||
void BPY_free_compiled_text(struct Text* text);
|
||||
/*void BPY_clear_bad_scriptlink(struct ID *id, struct Text *byebye); */
|
||||
void BPY_clear_bad_scriptlinks(struct Text *byebye);
|
||||
@@ -64,8 +66,10 @@ void BPY_copy_scriptlink(struct ScriptLink *scriptlink);
|
||||
/* format importer hook */
|
||||
int BPY_call_importloader(char *name);
|
||||
|
||||
int BPY_spacetext_is_pywin(struct SpaceText *st);
|
||||
void BPY_spacetext_do_pywin_draw(struct SpaceText *st);
|
||||
void BPY_spacetext_do_pywin_event(struct SpaceText *st, unsigned short event, short val);
|
||||
//int BPY_spacetext_is_pywin(struct SpaceText *st);
|
||||
void BPY_spacescript_do_pywin_draw(struct SpaceScript *sc);
|
||||
void BPY_spacescript_do_pywin_event(struct SpaceScript *sc, unsigned short event, short val);
|
||||
void BPY_clear_script(struct Script *script);
|
||||
void BPY_free_finished_script(struct Script *script);
|
||||
|
||||
void init_syspath(void);
|
||||
|
||||
Reference in New Issue
Block a user