diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-05-11 03:58:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-05-11 03:58:53 +0300 |
commit | f4bae1f6d6ab07e2b959e509c637f3e1505ee559 (patch) | |
tree | c41936b2e68f1383ea060fa0a2aee76f92388dbd | |
parent | 9e2e85a36777098ea97f63a183d9e715a9d703d6 (diff) |
Outliner: cleanup flag was never cleared
Was running cleanup on every draw.
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index 4b07c400220..ad37d723d1b 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++; |