diff options
author | Bastien Montagne <bastien@blender.org> | 2022-09-14 16:48:49 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-09-14 16:48:49 +0300 |
commit | 56fb2a5ed0f54af198d450542c3536be516d7214 (patch) | |
tree | bc214530037d22da2440ec021a5c0230689520e0 /source/blender/blenkernel | |
parent | 22bf5ba4d1526c9e942a2dbd6f25e3932e9d71f2 (diff) |
Cleanup: use proper `bool` variables in Main, instead of `char`.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_main.h | 10 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/blendfile.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenkernel/BKE_main.h b/source/blender/blenkernel/BKE_main.h index 4d26ed11f1b..b741489d929 100644 --- a/source/blender/blenkernel/BKE_main.h +++ b/source/blender/blenkernel/BKE_main.h @@ -116,25 +116,25 @@ typedef struct Main { uint64_t build_commit_timestamp; /* commit's timestamp from buildinfo */ char build_hash[16]; /* hash from buildinfo */ /** Indicate the #Main.filepath (file) is the recovered one. */ - char recovered; + bool recovered; /** All current ID's exist in the last memfile undo step. */ - char is_memfile_undo_written; + bool is_memfile_undo_written; /** * An ID needs its data to be flushed back. * use "needs_flush_to_id" in edit data to flag data which needs updating. */ - char is_memfile_undo_flush_needed; + bool is_memfile_undo_flush_needed; /** * Indicates that next memfile undo step should not allow reusing old bmain when re-read, but * instead do a complete full re-read/update from stored memfile. */ - char use_memfile_full_barrier; + bool use_memfile_full_barrier; /** * When linking, disallow creation of new data-blocks. * Make sure we don't do this by accident, see T76738. */ - char is_locked_for_linking; + bool is_locked_for_linking; BlendThumbnail *blen_thumb; diff --git a/source/blender/blenkernel/intern/blendfile.c b/source/blender/blenkernel/intern/blendfile.c index d7f30c99397..bf40d07054d 100644 --- a/source/blender/blenkernel/intern/blendfile.c +++ b/source/blender/blenkernel/intern/blendfile.c @@ -364,7 +364,7 @@ static void setup_app_data(bContext *C, BKE_lib_override_library_main_hierarchy_root_ensure(bmain); } - bmain->recovered = 0; + bmain->recovered = false; /* startup.blend or recovered startup */ if (is_startup) { @@ -372,7 +372,7 @@ static void setup_app_data(bContext *C, } else if (recover) { /* In case of autosave or quit.blend, use original filepath instead. */ - bmain->recovered = 1; + bmain->recovered = true; STRNCPY(bmain->filepath, bfd->filepath); } |