Fix crash reading files with unknown modifier ID's

Missing NULL check for the modifier type.
This commit is contained in:
Campbell Barton 2021-01-04 16:44:25 +11:00
parent f43e8cceb3
commit 14ee48d898
1 changed files with 1 additions and 1 deletions

View File

@ -1564,7 +1564,7 @@ void BKE_modifier_blend_read_data(BlendDataReader *reader, ListBase *lb, Object
}
}
if (mti->blendRead != NULL) {
if ((mti != NULL) && (mti->blendRead != NULL)) {
mti->blendRead(reader, md);
}
}