Fix crash in versioning code

This commit is contained in:
Pablo Dobarro 2021-02-23 23:27:51 +01:00
parent 05bb102a30
commit ad743c056f
1 changed files with 3 additions and 1 deletions

View File

@ -1762,7 +1762,9 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
if (!DNA_struct_elem_find(fd->filesdna, "Sculpt", "float", "smooth_strength_factor")) {
LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) {
Sculpt *sd = scene->toolsettings->sculpt;
sd->smooth_strength_factor = 1.0f;
if (sd) {
sd->smooth_strength_factor = 1.0f;
}
}
}
}