diff options
author | Bastien Montagne <bastien@blender.org> | 2022-05-30 17:56:56 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-05-30 17:58:27 +0300 |
commit | dd2ed1c55cf50cbd5640ff00c6991c3c53dcefe0 (patch) | |
tree | fa1adf153337e6181085d28988f01a4f93f5eb71 /source/blender/windowmanager | |
parent | fb62fcf0717e5a3e6ef464e12cbdbd21e91533a0 (diff) |
Cleanup: report errors instead of asserting in case of missing local data on file read.
While this should never happen, this is not a critical failure
preventing Blender to work.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index bee7e71df54..9578f82d3d4 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -846,8 +846,13 @@ static void file_read_reports_finalize(BlendFileReadReport *bf_reports) bf_reports->count.missing_obproxies); } else { - BLI_assert(bf_reports->count.missing_obdata == 0); - BLI_assert(bf_reports->count.missing_obproxies == 0); + if (bf_reports->count.missing_obdata != 0 || bf_reports->count.missing_obproxies != 0) { + CLOG_ERROR(&LOG, + "%d local ObjectData and %d local Object proxies are reported to be missing, " + "this should never happen", + bf_reports->count.missing_obdata, + bf_reports->count.missing_obproxies); + } } if (bf_reports->resynced_lib_overrides_libraries_count != 0) { |