diff options
Diffstat (limited to 'source/blender/blenloader/intern/writefile.c')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index f724458c2ba..ffd1d6d1be1 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -2229,7 +2229,7 @@ static void write_scenes(WriteData *wd, ListBase *scebase) SEQ_BEGIN (ed, seq) { - if (seq->strip) seq->strip->done = FALSE; + if (seq->strip) seq->strip->done = false; writestruct(wd, DATA, "Sequence", 1, seq); } SEQ_END @@ -2275,7 +2275,7 @@ static void write_scenes(WriteData *wd, ListBase *scebase) else if (seq->type==SEQ_TYPE_MOVIE || seq->type==SEQ_TYPE_SOUND_RAM || seq->type == SEQ_TYPE_SOUND_HD) writestruct(wd, DATA, "StripElem", 1, strip->stripdata); - strip->done = TRUE; + strip->done = true; } write_sequence_modifiers(wd, &seq->modifiers); @@ -2625,7 +2625,8 @@ static void write_libraries(WriteData *wd, Main *main) { ListBase *lbarray[MAX_LIBARRAY]; ID *id; - int a, tot, foundone; + int a, tot; + bool found_one; for (; main; main= main->next) { @@ -2633,24 +2634,24 @@ static void write_libraries(WriteData *wd, Main *main) /* test: is lib being used */ if (main->curlib && main->curlib->packedfile) - foundone = TRUE; + found_one = true; else { - foundone = FALSE; + found_one = false; while (tot--) { for (id= lbarray[tot]->first; id; id= id->next) { if (id->us>0 && (id->flag & LIB_EXTERN)) { - foundone = TRUE; + found_one = true; break; } } - if (foundone) break; + if (found_one) break; } } /* to be able to restore quit.blend and temp saves, the packed blend has to be in undo buffers... */ /* XXX needs rethink, just like save UI in undo files now - would be nice to append things only for the] * quit.blend and temp saves */ - if (foundone) { + if (found_one) { writestruct(wd, ID_LI, "Library", 1, main->curlib); if (main->curlib->packedfile) { |