Fix missing NULL check in recent version patch
This commit is contained in:
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
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue