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
Notes: blender-bot 2023-02-13 19:40:00 +01:00
Referenced by issue #85380, Crash on opening a specific file
1 changed files with 5 additions and 0 deletions

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;