Fix (studio-reported) crash in liboverride resync code after recent changes.

This commit is contained in:
Bastien Montagne
2023-05-08 12:46:03 +02:00
parent ae1c52b3f2
commit 3c2dc42712

View File

@@ -2426,7 +2426,9 @@ static void lib_override_resync_tagging_finalize_recurse(Main *bmain,
entry->tags |= MAINIDRELATIONS_ENTRY_TAGS_INPROGRESS;
/* Since this ID is reached from the hierarchy root, it is not isolated from it. */
if (id_root->override_library->hierarchy_root != id_root) {
if (id_root->override_library->hierarchy_root != id_root &&
id_root->override_library->runtime != nullptr)
{
id_root->override_library->runtime->tag &= ~LIBOVERRIDE_TAG_RESYNC_ISOLATED_FROM_ROOT;
}
}