Fixup for outliner visibility not changing disable state
authorDalai Felinto <dfelinto@gmail.com>
Wed, 6 Feb 2019 20:46:48 +0000 (18:46 -0200)
committerDalai Felinto <dfelinto@gmail.com>
Wed, 6 Feb 2019 20:48:50 +0000 (18:48 -0200)
Show Inside (shift + click) was still forcing objects to be visible.

source/blender/blenkernel/intern/layer.c

index 441f74e5d5fc92b91671665de1045ce9a8cbe4cc..26a9326409f1b812bebf8c6eeee514859bc98082 100644 (file)
@@ -1071,7 +1071,6 @@ static void layer_collection_bases_show_recursive(ViewLayer *view_layer, LayerCo
        for (CollectionObject *cob = lc->collection->gobject.first; cob; cob = cob->next) {
                Base *base = BKE_view_layer_base_find(view_layer, cob->ob);
                base->flag &= ~BASE_HIDDEN;
-               base->object->restrictflag &= ~OB_RESTRICT_VIEW;
        }
        for (LayerCollection *lc_iter = lc->layer_collections.first; lc_iter; lc_iter = lc_iter->next) {
                layer_collection_bases_show_recursive(view_layer, lc_iter);