Fix crash in versioning code
This commit is contained in:
parent
05bb102a30
commit
ad743c056f
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue