diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-08 04:06:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-08 04:10:56 +0300 |
commit | a9853a7e6ce03c519310372232596970fdfdc9f2 (patch) | |
tree | 589ce3c12224672403a42faa73147bc3a5e0be0f /source | |
parent | 3d16a268ee688da25f72a1adb08fdaab454c344d (diff) |
Fix missing NULL check in recent version patch
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index 554361ef813..5e0eb849341 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -2808,7 +2808,9 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain) } ToolSettings *ts = scene->toolsettings; ts->particle.flag &= ~PE_DEPRECATED_6; - ts->sculpt->flags &= ~SCULPT_FLAG_DEPRECATED_6; + if (ts->sculpt != NULL) { + ts->sculpt->flags &= ~SCULPT_FLAG_DEPRECATED_6; + } } } |