Fix crash when selecting all bones in armature
Pressing 'A' to select all pose bones in an armature caused a segfault, as `id->override_library->runtime->tag` was checked while `id->override_library->runtime` was `nullptr`. An extra check resolved the crash.
This commit is contained in:
@@ -4193,7 +4193,7 @@ void BKE_lib_override_library_main_operations_restore(Main *bmain, int *r_report
|
||||
ID *id;
|
||||
|
||||
FOREACH_MAIN_ID_BEGIN (bmain, id) {
|
||||
if (!(!ID_IS_LINKED(id) && ID_IS_OVERRIDE_LIBRARY_REAL(id) &&
|
||||
if (!(!ID_IS_LINKED(id) && ID_IS_OVERRIDE_LIBRARY_REAL(id) && id->override_library->runtime &&
|
||||
(id->override_library->runtime->tag & LIBOVERRIDE_TAG_NEEDS_RESTORE) != 0))
|
||||
{
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user