diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-04-23 13:24:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-04-23 13:24:22 +0400 |
commit | d43bef938f950691b5a607eff7393e9e47690d33 (patch) | |
tree | 6f72aed117ce24d216034744b04e4822bfa1f255 /source/blender/blenloader/intern/writefile.c | |
parent | 0429707e6c077ceecd651cd00682016cfac74fe2 (diff) |
svn merge https://svn.blender.org/svnroot/bf-blender/branches/render25 -r28371:28372
console history save/load from joe
Diffstat (limited to 'source/blender/blenloader/intern/writefile.c')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 988f562b82a..47b71dfa5e4 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -2108,7 +2108,15 @@ static void write_screens(WriteData *wd, ListBase *scrbase) writestruct(wd, DATA, "SpaceLogic", 1, sl); } else if(sl->spacetype==SPACE_CONSOLE) { + SpaceConsole *con = (SpaceConsole*)sl; + ConsoleLine *cl; + + for (cl=con->history.first; cl; cl=cl->next) { + writestruct(wd, DATA, "ConsoleLine", 1, cl); + writedata(wd, DATA, cl->len+1, cl->line); + } writestruct(wd, DATA, "SpaceConsole", 1, sl); + } else if(sl->spacetype==SPACE_USERPREF) { writestruct(wd, DATA, "SpaceUserPref", 1, sl); |