Fix missing NULL check in recent version patch

This commit is contained in:
Campbell Barton 2019-02-08 12:06:55 +11:00
parent 3d16a268ee
commit a9853a7e6c
Notes: blender-bot 2023-02-14 07:18:54 +01:00
Referenced by issue #61302, blender crash when open material tab
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}
}