Fix own error w/ undo ID lookup

Was testing with small number of items, so this went unnoticed.
This commit is contained in:
2018-04-03 17:58:37 +02:00
parent b2c9fdfe87
commit 1f0f234b07

View File

@@ -787,6 +787,7 @@ ID *BKE_undosys_ID_map_lookup(const UndoIDPtrMap *map, const ID *id_src)
if (!undosys_ID_map_lookup_index(map, id_src, &index)) {
BLI_assert(0);
}
index = map->pmap[index].index;
ID *id_dst = map->refs[index].ptr;
BLI_assert(id_dst != NULL);
BLI_assert(STREQ(id_dst->name, map->refs[index].name));