Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-04-01 04:34:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-01 08:22:28 +0400
commit617557b08ea94e2b65a1697ddf0b79651204d92b (patch)
tree50b24bab075b42fa20456140c9a9681cfb01325b /source/blender/blenloader/intern/writefile.c
parent2c00ecc738c04dc5dc22d4a6b81a1e937526ba6d (diff)
Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define
Diffstat (limited to 'source/blender/blenloader/intern/writefile.c')
-rw-r--r--source/blender/blenloader/intern/writefile.c17
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) {