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