[Bf-blender-cvs] [f4bae1f] master: Outliner: cleanup flag was never cleared
Campbell Barton
noreply at git.blender.org
Mon May 11 03:10:03 CEST 2015
Commit: f4bae1f6d6ab07e2b959e509c637f3e1505ee559
Author: Campbell Barton
Date: Mon May 11 10:58:53 2015 +1000
Branches: master
https://developer.blender.org/rBf4bae1f6d6ab07e2b959e509c637f3e1505ee559
Outliner: cleanup flag was never cleared
Was running cleanup on every draw.
===================================================================
M source/blender/editors/space_outliner/outliner_tree.c
===================================================================
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c
index 4b07c40..ad37d72 100644
--- a/source/blender/editors/space_outliner/outliner_tree.c
+++ b/source/blender/editors/space_outliner/outliner_tree.c
@@ -104,6 +104,8 @@ static void outliner_storage_cleanup(SpaceOops *soops)
/* cleanup only after reading file or undo step, and always for
* RNA datablocks view in order to save memory */
if (soops->storeflag & SO_TREESTORE_CLEANUP) {
+ soops->storeflag &= ~SO_TREESTORE_CLEANUP;
+
BLI_mempool_iternew(ts, &iter);
while ((tselem = BLI_mempool_iterstep(&iter))) {
if (tselem->id == NULL) unused++;
More information about the Bf-blender-cvs
mailing list