Fix T85380: NLA Evaluation Missing Null Check

Introduced by commit: rB40b7929cc040
This commit is contained in:
Wayde Moss
2021-02-05 14:18:12 -05:00
parent 7d874b0343
commit 5bc9ddd98b

View File

@@ -1795,6 +1795,11 @@ static void nlasnapshot_from_action(PointerRNA *ptr,
NlaEvalChannel *nec = nlaevalchan_verify(ptr, channels, fcu->rna_path);
/* Invalid path or property cannot be animated. */
if (nec == NULL) {
continue;
}
NlaEvalChannelSnapshot *necs = nlaeval_snapshot_ensure_channel(r_snapshot, nec);
if (!nlaevalchan_validate_index_ex(nec, fcu->array_index)) {
continue;