[Bf-blender-cvs] [c6037b39a1e] blender2.8: Fix slow .blend file load due to recent accidentally committed debug code.
Brecht Van Lommel
noreply at git.blender.org
Mon Sep 3 14:21:48 CEST 2018
Commit: c6037b39a1ee8f94ef129b580905d95ed94a8ec3
Author: Brecht Van Lommel
Date: Mon Sep 3 14:11:55 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBc6037b39a1ee8f94ef129b580905d95ed94a8ec3
Fix slow .blend file load due to recent accidentally committed debug code.
===================================================================
M source/blender/blenloader/intern/readfile.c
===================================================================
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 48c3ab47b1d..810bc466275 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -340,12 +340,6 @@ static void oldnewmap_insert(OldNewMap *onm, const void *oldaddr, void *newaddr,
if (oldaddr==NULL || newaddr==NULL) return;
- for (int i = 0; i < onm->nentries; i++) {
- if (onm->entries[i].old == oldaddr && onm->entries[i].newp != newaddr) {
- abort();
- }
- }
-
if (UNLIKELY(onm->nentries == onm->entriessize)) {
onm->entriessize *= 2;
onm->entries = MEM_reallocN(onm->entries, sizeof(*onm->entries) * onm->entriessize);
More information about the Bf-blender-cvs
mailing list