From b9f6d66328b8b96d4f1fe29f761a99fbe531c4de Mon Sep 17 00:00:00 2001 From: Willian Padovani Germano Date: Tue, 13 May 2003 01:54:28 +0000 Subject: * Added 3 missing functions, 2 of them called by blender/src/drawtext.c: Callbacks registered with Draw.Register in Python are called now. That should fix submodule Blender.Draw. * Added a few other missing functions to BPY_interface.c * Finished implementing Get() function for Camera, Lamp, Image and Text: Both the .Get(name) and .Get() cases are handled now. * Added function Blender.ReleaseGlobalDict(): This function should give script writers control over whether the global Python Interpreter Dict should be cleared after the script is run (default is to clear). This is a test. --- source/blender/python/BPY_extern.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source/blender/python/BPY_extern.h') diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h index b2747ef0ce6..2af7edc835e 100644 --- a/source/blender/python/BPY_extern.h +++ b/source/blender/python/BPY_extern.h @@ -25,11 +25,15 @@ * * The Original Code is: source/blender/bpyton/include/BPY_extern.h * - * Contributor(s): Michel Selten + * Contributor(s): Michel Selten, Willian P. Germano * * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +/* Global to control whether the global dictionary should be preserved or not + * each time a script is executed by the Python Interpreter: */ +extern short EXPP_releaseGlobalDict; /* defaults to TRUE */ + struct Text; /* defined in DNA_text_types.h */ struct ID; /* defined in DNA_ID.h */ struct ScriptLink; /* defined in DNA_scriptlink_types.h */ @@ -57,7 +61,9 @@ void BPY_copy_scriptlink(struct ScriptLink *scriptlink); /* format importer hook */ int BPY_call_importloader(char *name); +/* XXX The 3 functions below are implemented in Draw.c */ +/* 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); - +*/ -- cgit v1.2.3