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.
This commit is contained in:
2008-03-06 21:25:15 +00:00
parent 3796abf092
commit 08f306c81c
20 changed files with 305 additions and 223 deletions

View File

@@ -38,7 +38,6 @@
#include "BKE_main.h"
#include "BKE_object.h" /* for during_script() and during_scriptlink() */
#include "BKE_scene.h" /* scene_find_camera() */
#include "BPI_script.h"
#include "BIF_mywindow.h"
#include "BIF_imasel.h"
#include "BSE_headerbuttons.h"