diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-03-07 00:25:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-03-07 00:25:15 +0300 |
commit | 08f306c81cb8015db59fe63ad1ef2c977751652e (patch) | |
tree | 94f656dbf98fba2bf3d47547d34c06131d0a88cf /source/blender/blenkernel | |
parent | 3796abf092c9de4d43131dbce05102b126e14896 (diff) |
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.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/bad_level_call_stubs/stubs.c | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/library.c | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/script.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/bad_level_call_stubs/stubs.c b/source/blender/blenkernel/bad_level_call_stubs/stubs.c index 5e827ca766b..1da46149eac 100644 --- a/source/blender/blenkernel/bad_level_call_stubs/stubs.c +++ b/source/blender/blenkernel/bad_level_call_stubs/stubs.c @@ -36,7 +36,7 @@ #include "BKE_bad_level_calls.h" #include "BLI_blenlib.h" -#include "BPI_script.h" +#include "DNA_space_types.h" #include "DNA_texture_types.h" #include "DNA_material_types.h" #include "DNA_node_types.h" diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c index e81d3bac655..4cd7e1c6d38 100644 --- a/source/blender/blenkernel/intern/library.c +++ b/source/blender/blenkernel/intern/library.c @@ -114,7 +114,7 @@ #include "BKE_brush.h" #include "BKE_idprop.h" -#include "BPI_script.h" +#include "DNA_space_types.h" #define MAX_IDPUP 60 /* was 24 */ diff --git a/source/blender/blenkernel/intern/script.c b/source/blender/blenkernel/intern/script.c index b99c2c51441..099fedf460a 100644 --- a/source/blender/blenkernel/intern/script.c +++ b/source/blender/blenkernel/intern/script.c @@ -35,7 +35,7 @@ */ #include "BKE_script.h" -#include "BPI_script.h" +#include "DNA_space_types.h" #include "MEM_guardedalloc.h" #include "BKE_bad_level_calls.h" /* for BPY_clear_script */ |