Cleanup: Move generic validity checks on blend data to DEBUG report.

Also reword it a bit, as 'sanity' is not clear enough it seems...
This commit is contained in:
Bastien Montagne
2023-08-30 15:06:59 +02:00
parent 152f5dc897
commit 770f5045b5
2 changed files with 6 additions and 4 deletions

View File

@@ -1412,7 +1412,7 @@ static void write_file_main_validate_pre(Main *bmain, ReportList *reports)
return;
}
BKE_report(reports, RPT_INFO, "Checking sanity of current .blend file *BEFORE* save to disk");
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)) {
@@ -1434,7 +1434,8 @@ static void write_file_main_validate_post(Main *bmain, ReportList *reports)
}
if (G.debug & G_DEBUG_IO) {
BKE_report(reports, RPT_INFO, "Checking sanity of current .blend file *AFTER* save to disk");
BKE_report(
reports, RPT_DEBUG, "Checking validity of current .blend file *BEFORE* save to disk");
BLO_main_validate_libraries(bmain, reports);
}
}

View File

@@ -172,7 +172,8 @@ static void ed_undo_step_pre(bContext *C,
if (G.debug & G_DEBUG_IO) {
if (bmain->lock != nullptr) {
BKE_report(reports, RPT_INFO, "Checking sanity of current .blend file *BEFORE* undo step");
BKE_report(
reports, RPT_DEBUG, "Checking validity of current .blend file *BEFORE* undo step");
BLO_main_validate_libraries(bmain, reports);
}
}
@@ -237,7 +238,7 @@ static void ed_undo_step_post(bContext *C,
if (G.debug & G_DEBUG_IO) {
if (bmain->lock != nullptr) {
BKE_report(reports, RPT_INFO, "Checking sanity of current .blend file *AFTER* undo step");
BKE_report(reports, RPT_INFO, "Checking validity of current .blend file *AFTER* undo step");
BLO_main_validate_libraries(bmain, reports);
}
}