Anim: implement 3D viewport keyframing functionality for the Animation data-block #120428
@ -98,6 +98,17 @@ void CombinedKeyingResult::generate_reports(ReportList *reports)
|
||||
}
|
||||
|
||||
Vector<std::string> errors;
|
||||
nathanvegdahl marked this conversation as resolved
|
||||
if (this->get_count(SingleKeyingResult::GENERIC_FAILURE) > 0) {
|
||||
const int error_count = this->get_count(SingleKeyingResult::GENERIC_FAILURE);
|
||||
if (error_count == 1) {
|
||||
errors.append(RPT_("Could not insert one key for unknown reasons."));
|
||||
}
|
||||
else {
|
||||
errors.append(
|
||||
fmt::format(RPT_("Could not insert {:d} keys for unknown reasons."), error_count));
|
||||
}
|
||||
}
|
||||
|
||||
if (this->get_count(SingleKeyingResult::CANNOT_CREATE_FCURVE) > 0) {
|
||||
const int error_count = this->get_count(SingleKeyingResult::CANNOT_CREATE_FCURVE);
|
||||
if (error_count == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user
Check the discussion about this in
#animation-module
. We'll have to simplify these messages to just a single string that covers both singular & plural."Could not insert {:d} key(s) for unknown reasons."
Got it. If that gets addressed for the other report messages in main first, then I'll update these ones as well before merging. Otherwise I think it makes sense to merge as-is, and then they can all be changed together.