Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Craddock <nzcraddock@gmail.com>2020-09-16 18:03:37 +0300
committerNathan Craddock <nzcraddock@gmail.com>2020-09-16 18:07:04 +0300
commit365271a5886e1678b41e636581616446766b5f85 (patch)
treeedb51854ff3123b29aca8d025bd7e99b4f56756b /source/blender/blenkernel/intern/collection.c
parent0696eaa3e84e9394518e9bc86217291aa58dcf13 (diff)
Fix tests after adding collection color tagging
Fix a segfault caused by assuming all scenes have a master collection when applying versioning to old files.
Diffstat (limited to 'source/blender/blenkernel/intern/collection.c')
-rw-r--r--source/blender/blenkernel/intern/collection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/collection.c b/source/blender/blenkernel/intern/collection.c
index e8b29ffac3e..de2ec273567 100644
--- a/source/blender/blenkernel/intern/collection.c
+++ b/source/blender/blenkernel/intern/collection.c
@@ -650,6 +650,7 @@ Collection *BKE_collection_master_add()
STRNCPY(master_collection->id.name, "GRMaster Collection");
master_collection->id.flag |= LIB_EMBEDDED_DATA;
master_collection->flag |= COLLECTION_IS_MASTER;
+ master_collection->color_tag = COLLECTION_COLOR_NONE;
return master_collection;
}