Cleanup: Clear non-ID pointers in Outliner tree's readfile code.

Not really critical, but cleaner, and should ensure a hard crash in case
these (assumed invalid) pointers get ever accessed.
This commit is contained in:
Bastien Montagne
2023-05-13 19:35:17 +02:00
parent b960a4fdb8
commit 2117af10ab

View File

@@ -494,6 +494,9 @@ static void outliner_space_blend_read_lib(BlendLibReader *reader,
if (TSE_IS_REAL_ID(tselem)) {
BLO_read_id_address(reader, nullptr, &tselem->id);
}
else {
tselem->id = nullptr;
}
}
/* rebuild hash table, because it depends on ids too */
space_outliner->storeflag |= SO_TREESTORE_REBUILD;