Made python scripts save and load in the blend file so you can have the same scripts...
authorCampbell Barton <ideasman42@gmail.com>
Thu, 6 Mar 2008 21:25:15 +0000 (21:25 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 6 Mar 2008 21:25:15 +0000 (21:25 +0000)
commit08f306c81cb8015db59fe63ad1ef2c977751652e
tree94f656dbf98fba2bf3d47547d34c06131d0a88cf
parent3796abf092c9de4d43131dbce05102b126e14896
Made python scripts save and load in the blend file so you can have the same scripts running when you open a blend file.
Also scripts will re-run on undo rather then closing.

This is done by saving and loading the name of the script or textblock of the 'Script' datablock, connected to the ScriptSpace. This way when there is a name but the script dosnt run.
Blender runs the script or text block if available.
20 files changed:
source/blender/blenkernel/bad_level_call_stubs/stubs.c
source/blender/blenkernel/intern/library.c
source/blender/blenkernel/intern/script.c
source/blender/blenlib/BLI_blenlib.h
source/blender/blenlib/intern/util.c
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/writefile.c
source/blender/include/BPI_script.h [deleted file]
source/blender/makesdna/DNA_space_types.h
source/blender/python/BPY_extern.h
source/blender/python/BPY_interface.c
source/blender/python/api2_2x/Blender.c
source/blender/python/api2_2x/Draw.c
source/blender/python/api2_2x/Window.c
source/blender/src/drawscript.c
source/blender/src/editimasel.c
source/blender/src/filesel.c
source/blender/src/header_script.c
source/blender/src/headerbuttons.c
source/blender/src/space.c