Blender Git Commit Log
Git Commits -> Revision 89dab43
Revision 89dab43 by Willian Padovani Germano (master) April 30, 2006, 16:22 (GMT) |
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. |
Commit Details:
Full Hash: 89dab4397d9eb2b9970ba28edeaf95c578dcaab4
SVN Revision: 7338
Parent Commit: 3b84767
Lines Changed: +437, -22
12 Modified Paths:
/source/blender/blenkernel/bad_level_call_stubs/stubs.c (+10, -0) (Diff)
/source/blender/blenkernel/BKE_bad_level_calls.h (+7, -0) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+37, -7) (Diff)
/source/blender/blenkernel/intern/ipo.c (+10, -3) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+6, -2) (Diff)
/source/blender/python/api2_2x/EXPP_interface.c (+99, -0) (Diff)
/source/blender/python/api2_2x/EXPP_interface.h (+13, -0) (Diff)
/source/blender/python/api2_2x/Object.c (+12, -1) (Diff)
/source/blender/python/BPY_extern.h (+5, -0) (Diff)
/source/blender/python/BPY_interface.c (+190, -0) (Diff)
/source/blender/src/drawipo.c (+44, -7) (Diff)
/source/blender/src/usiblender.c (+4, -2) (Diff)
/source/blender/blenkernel/BKE_bad_level_calls.h (+7, -0) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+37, -7) (Diff)
/source/blender/blenkernel/intern/ipo.c (+10, -3) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+6, -2) (Diff)
/source/blender/python/api2_2x/EXPP_interface.c (+99, -0) (Diff)
/source/blender/python/api2_2x/EXPP_interface.h (+13, -0) (Diff)
/source/blender/python/api2_2x/Object.c (+12, -1) (Diff)
/source/blender/python/BPY_extern.h (+5, -0) (Diff)
/source/blender/python/BPY_interface.c (+190, -0) (Diff)
/source/blender/src/drawipo.c (+44, -7) (Diff)
/source/blender/src/usiblender.c (+4, -2) (Diff)