diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2017-03-29 13:31:27 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2017-03-29 13:31:27 +0300 |
commit | ac08482886a9026bb301912a0dd09f66b5181459 (patch) | |
tree | 2cdfb8d959212c343c300f6804bbf29d9b7cf13f | |
parent | 38d0ea4f69439ac78af3f6ad0245251e048e18b5 (diff) |
Fix glitches caused by new outliner versioning code
Mainly caused by TreeStoreElem.flag not being cleared.
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index da8920a9def..75628e59fa7 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -198,7 +198,7 @@ void do_versions_after_linking_280(Main *main) /* Create a tree store element for the collection. This is normally * done in check_persistent (outliner_tree.c), but we need to access * it here :/ (expand element if it's the only one) */ - TreeStoreElem *tselem = BLI_mempool_alloc(soutliner->treestore); + TreeStoreElem *tselem = BLI_mempool_calloc(soutliner->treestore); tselem->type = TSE_LAYER_COLLECTION; tselem->id = layer->layer_collections.first; tselem->nr = tselem->used = 0; |