Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-04-03 18:58:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-04-03 18:58:37 +0300
commit1f0f234b07dda752492b8ebdafd5711b32e07df0 (patch)
treefb392a44d16f79f204116b284324a1b7a33133b2 /source/blender
parentb2c9fdfe871e2f1eaa6be30d67ad9df12c2f0d01 (diff)
Fix own error w/ undo ID lookup
Was testing with small number of items, so this went unnoticed.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/intern/undo_system.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/undo_system.c b/source/blender/blenkernel/intern/undo_system.c
index d478be7db06..17d01bf1fcb 100644
--- a/source/blender/blenkernel/intern/undo_system.c
+++ b/source/blender/blenkernel/intern/undo_system.c
@@ -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));