Fix crash reading files with unknown modifier ID's
Missing NULL check for the modifier type.
This commit is contained in:
parent
f43e8cceb3
commit
14ee48d898
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue