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>2019-02-08 04:06:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-08 04:10:56 +0300
commita9853a7e6ce03c519310372232596970fdfdc9f2 (patch)
tree589ce3c12224672403a42faa73147bc3a5e0be0f /source/blender/blenloader
parent3d16a268ee688da25f72a1adb08fdaab454c344d (diff)
Fix missing NULL check in recent version patch
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_280.c4
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;
+ }
}
}