Fix T83315: Crash showing animation channel context menu after baking sound

Fix a crash when right-clicking in the Graph Editor animation channel
list. The code for getting selected keyframes was not checking for baked
curves.
This commit is contained in:
2020-12-03 15:02:56 +01:00
parent a3c4091215
commit 675d84826e

View File

@@ -1004,6 +1004,11 @@ static eContextResult screen_ctx_selected_editable_keyframes(const bContext *C,
}
fcurve = (FCurve *)ale->data;
if (fcurve->bezt == NULL) {
/* Skip baked FCurves. */
continue;
}
for (i = 0, bezt = fcurve->bezt; i < fcurve->totvert; i++, bezt++) {
if ((bezt->f2 & SELECT) == 0) {
continue;