diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-01-04 08:44:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-01-04 09:40:05 +0300 |
commit | 14ee48d898e8cbe1a0be9899ea4d9d68cb3f1f04 (patch) | |
tree | 88be8cd315aa680c2b20682a18d7e251371371d5 | |
parent | f43e8cceb3dfafc03c278be741479ce6825a6a53 (diff) |
Fix crash reading files with unknown modifier ID's
Missing NULL check for the modifier type.
-rw-r--r-- | source/blender/blenkernel/intern/modifier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/modifier.c b/source/blender/blenkernel/intern/modifier.c index ba0f59f6363..a2a0bd84234 100644 --- a/source/blender/blenkernel/intern/modifier.c +++ b/source/blender/blenkernel/intern/modifier.c @@ -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); } } |