Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-01-04 08:44:25 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-01-04 09:40:05 +0300
commit14ee48d898e8cbe1a0be9899ea4d9d68cb3f1f04 (patch)
tree88be8cd315aa680c2b20682a18d7e251371371d5 /source/blender/blenkernel/intern/modifier.c
parentf43e8cceb3dfafc03c278be741479ce6825a6a53 (diff)
Fix crash reading files with unknown modifier ID's
Missing NULL check for the modifier type.
Diffstat (limited to 'source/blender/blenkernel/intern/modifier.c')
-rw-r--r--source/blender/blenkernel/intern/modifier.c2
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);
}
}