From 6f6fd99dbb49a6013ff3e1daffbdf5c2022c58ec Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 4 Oct 2023 16:13:56 +0200 Subject: [PATCH] Fix I/O debug message printed without debugging enabled --- source/blender/blenloader/intern/writefile.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/blender/blenloader/intern/writefile.cc b/source/blender/blenloader/intern/writefile.cc index c0a0eb59349..d8fa94a2f36 100644 --- a/source/blender/blenloader/intern/writefile.cc +++ b/source/blender/blenloader/intern/writefile.cc @@ -1432,7 +1432,10 @@ static void write_file_main_validate_pre(Main *bmain, ReportList *reports) return; } - BKE_report(reports, RPT_DEBUG, "Checking validity of current .blend file *BEFORE* save to disk"); + if (G.debug & G_DEBUG_IO) { + BKE_report( + reports, RPT_DEBUG, "Checking validity of current .blend file *BEFORE* save to disk"); + } BLO_main_validate_shapekeys(bmain, reports); if (!BKE_main_namemap_validate_and_fix(bmain)) {