Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillian Padovani Germano <wpgermano@gmail.com>2006-04-30 20:22:31 +0400
committerWillian Padovani Germano <wpgermano@gmail.com>2006-04-30 20:22:31 +0400
commit89dab4397d9eb2b9970ba28edeaf95c578dcaab4 (patch)
tree267c2faf6a9f2475630df2894a5e24832bc9ace4 /source/blender/blenkernel/bad_level_call_stubs/stubs.c
parent3b84767824d4f9666dfc5eea1fcf134d7643fb27 (diff)
Pydrivers: Ipo Drivers controlled by Python expressions
wiki with info: http://mediawiki.blender.org/index.php/BlenderDev/PyDrivers (there are two sample .blends in the patch tracker entry, last link in the wiki page) Notes: In usiblender.c I just made Python exit before the main library gets freed. I found a situation with pydrivers where py's gc tried to del objects on exit and their ID's were not valid anymore (so sigsegv). Ton needs to check the depsgraph part. For now pydrivers can reference their own object, something normal ipodrivers can't. This seems to work fine and is quite useful, but if tests prove the restriction is necessary, we just need to uncomment a piece of code in EXPP_interface.c, marked with "XXX". Thanks Ton for the ipodrivers code and adding the hooks for the py part and Martin for the "Button Python Evaluation" patch from which I started this one. Anyone interested, please check the wiki, the .blends (they have README's) and tell me about any issue.
Diffstat (limited to 'source/blender/blenkernel/bad_level_call_stubs/stubs.c')
-rw-r--r--source/blender/blenkernel/bad_level_call_stubs/stubs.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/blenkernel/bad_level_call_stubs/stubs.c b/source/blender/blenkernel/bad_level_call_stubs/stubs.c
index 7bc4e664429..3e858aca631 100644
--- a/source/blender/blenkernel/bad_level_call_stubs/stubs.c
+++ b/source/blender/blenkernel/bad_level_call_stubs/stubs.c
@@ -109,6 +109,16 @@ void BPY_do_pyscript(ID *id, short int event){}
void BPY_clear_script(Script *script){}
void BPY_free_compiled_text(struct Text *text){}
void BPY_free_screen_spacehandlers (struct bScreen *sc){}
+float BPY_pydriver_eval(struct IpoDriver *driver)
+{
+ return 0;
+}
+
+/* depsgraph.c: */
+struct Object **BPY_pydriver_get_objects(struct IpoDriver *driver)
+{
+ return 0;
+}
/* writefile.c */
/* struct Oops; */