Fixup for doversion/layers: disable collections for scene layers

This commit is contained in:
Dalai Felinto 2017-11-10 11:26:35 -02:00
parent 2ec01cc7c5
commit 34c99ee85b
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ void do_versions_after_linking_280(Main *main)
/* Add new collection bases. */
for (int layer = 0; layer < 20; layer++) {
if ((srl->lay & (1 << layer)) != 0) {
if ((srl->lay & (1 << layer)) && (scene->lay & (1 << layer))) {
if (collections[DO_VERSION_COLLECTION_VISIBLE].created & (1 << layer)) {
LayerCollection *layer_collection_parent;