Anim: implement 3D viewport keyframing functionality for the Animation data-block #120428

Closed
Nathan Vegdahl wants to merge 21 commits from nathanvegdahl/blender:baklava_keyframing into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit bf550b3d02 - Show all commits

View File

@ -98,6 +98,17 @@ void CombinedKeyingResult::generate_reports(ReportList *reports)
}
Vector<std::string> errors;
nathanvegdahl marked this conversation as resolved

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."

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."`
Review

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.

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.
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) {