BPython - first step for better integration of Python in Blender:
- add a new space: Space Script - add a new dna struct: Script - add these two properly everywhere they are meant to It's not a tiny commit, but most of it is ground work for what is still to be done. Right now the benefits should be: freeing the Text Editor to be used in a window even while a script w/ gui in "on" and letting more than one currently running script w/ gui be accessible from each window Some files are added, so some build systems (not autotools) will need updates
This commit is contained in:
@@ -71,6 +71,7 @@
|
||||
#include "DNA_space_types.h"
|
||||
#include "DNA_scene_types.h"
|
||||
#include "DNA_screen_types.h"
|
||||
#include "DNA_script_types.h"
|
||||
#include "DNA_view3d_types.h"
|
||||
#include "DNA_userdef_types.h"
|
||||
|
||||
@@ -1410,6 +1411,12 @@ void filesel_prevspace()
|
||||
BLI_addtail(&curarea->spacedata, sfile);
|
||||
|
||||
sfile= curarea->spacedata.first;
|
||||
|
||||
if (sfile->spacetype == SPACE_SCRIPT) {
|
||||
SpaceScript *sc = (SpaceScript *)sfile;
|
||||
if (sc->script) sc->script->flags &=~SCRIPT_FILESEL;
|
||||
}
|
||||
|
||||
newspace(curarea, sfile->spacetype);
|
||||
}
|
||||
else newspace(curarea, SPACE_INFO);
|
||||
|
Reference in New Issue
Block a user