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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user