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:
authorDalai Felinto <dfelinto@gmail.com>2019-02-09 01:09:37 +0300
committerDalai Felinto <dfelinto@gmail.com>2019-02-09 01:09:37 +0300
commit191b8951f7afae26117cc5386b979557b84dc437 (patch)
treee2fbdb39117f77c1856df365a0ffcf0b9b2b3626 /source/blender/editors/space_outliner/outliner_collections.c
parente04d6794d017b82f33a893bfc959cebd909d3176 (diff)
Outliner visibility: Prevent changing linked objects and collections
We still change their base/layer collection visibility, just not what would change the original ID datablock.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_collections.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_collections.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_collections.c b/source/blender/editors/space_outliner/outliner_collections.c
index a07fe4b9e15..92c68681a54 100644
--- a/source/blender/editors/space_outliner/outliner_collections.c
+++ b/source/blender/editors/space_outliner/outliner_collections.c
@@ -1065,7 +1065,9 @@ static int collection_flag_exec(bContext *C, wmOperator *op)
GSET_ITER(collections_to_edit_iter, data.collections_to_edit) {
LayerCollection *layer_collection = BLI_gsetIterator_getKey(&collections_to_edit_iter);
Collection *collection = layer_collection->collection;
-
+ if (collection->id.lib != NULL) {
+ continue;
+ }
if (clear) {
collection->flag &= ~flag;
}