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>2013-08-18 04:36:04 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-18 04:36:04 +0400
commitfbb446dff620c0719fd77692a0d401203ef1e966 (patch)
treec95104990f0da56ad6c5cd1d5ca4fb1ac4f277e7 /source/blender/editors/space_outliner
parent763bce4d64eeed978c6e84212da0f9c59ed32a4d (diff)
add assert for hashes if an existing element is ever inserted into a ghash/edgehash.
the outliner does this intentionally, so add a flag to allow this situation optionally.
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r--source/blender/editors/space_outliner/outliner_tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c
index af870f3ca5d..404821900df 100644
--- a/source/blender/editors/space_outliner/outliner_tree.c
+++ b/source/blender/editors/space_outliner/outliner_tree.c
@@ -194,6 +194,7 @@ static void check_persistent(SpaceOops *soops, TreeElement *te, ID *id, short ty
}
if (soops->treehash == NULL) {
soops->treehash = BLI_ghash_new(tse_hash, tse_cmp, "treehash");
+ BLI_ghash_flag_set(soops->treehash, GHASH_FLAG_ALLOW_DUPES);
}
if (restore_treehash) {