[Bf-blender-cvs] [a38759f017f] master: Fix T67863: Crash pressing Ctrl +/- in gpencil action editor
Campbell Barton
noreply at git.blender.org
Mon Jul 29 09:24:47 CEST 2019
Commit: a38759f017fb7e975e56f7121113cb8c8aab843b
Author: Campbell Barton
Date: Mon Jul 29 17:22:12 2019 +1000
Branches: master
https://developer.blender.org/rBa38759f017fb7e975e56f7121113cb8c8aab843b
Fix T67863: Crash pressing Ctrl +/- in gpencil action editor
===================================================================
M source/blender/editors/space_action/action_select.c
===================================================================
diff --git a/source/blender/editors/space_action/action_select.c b/source/blender/editors/space_action/action_select.c
index 7cc222ea529..9e2634b183a 100644
--- a/source/blender/editors/space_action/action_select.c
+++ b/source/blender/editors/space_action/action_select.c
@@ -1199,9 +1199,14 @@ static void select_moreless_action_keys(bAnimContext *ac, short mode)
ANIM_animdata_filter(ac, &anim_data, filter, ac->data, ac->datatype);
for (ale = anim_data.first; ale; ale = ale->next) {
- FCurve *fcu = (FCurve *)ale->key_data;
+
+ /* TODO: other types. */
+ if (ale->datatype != ALE_FCURVE) {
+ continue;
+ }
/* only continue if F-Curve has keyframes */
+ FCurve *fcu = (FCurve *)ale->key_data;
if (fcu->bezt == NULL) {
continue;
}
More information about the Bf-blender-cvs
mailing list