Anim: Detailed report if no keyframes have been inserted #119201

Merged
Christoph Lendenfeld merged 13 commits from ChrisLend/blender:return_keying_result into main 2024-04-09 09:39:25 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit b9cbaafa47 - Show all commits

View File

@ -135,7 +135,7 @@ void CombinedKeyingResult::generate_reports(ReportList *reports)
}
if (has_reported_error) {
BKE_reportf(reports, RPT_ERROR, "%s", error.c_str());
BKE_report(reports, RPT_ERROR, error.c_str());

BKE_report(reports, RPT_ERROR, error.c_str());

`BKE_report(reports, RPT_ERROR, error.c_str());`
}
else {
BKE_report(reports, RPT_WARNING, "Encountered unhandled error during keyframing");

View File

@ -341,7 +341,7 @@ static int insert_key(bContext *C, wmOperator *op)
}
if (BLI_listbase_is_empty(&selection)) {
BKE_reportf(op->reports, RPT_WARNING, "Nothing selected to keyframe");
BKE_reportf(op->reports, RPT_WARNING, "Nothing selected to key");

In the rest of this PR "keyframe" is only used as a noun. Maybe "Nothing selected to key" is better?

In the rest of this PR "keyframe" is only used as a noun. Maybe "Nothing selected to key" is better?
BLI_freelistN(&selection);
return OPERATOR_CANCELLED;
}