From 92736a7b75920ffe4b8016a2d097ff8e36687c70 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Mon, 19 Aug 2019 14:25:29 -0300 Subject: Per-Viewport Collection Visibility Support per-viewport collection visibility options. Note 1: There is no way to show a collection that was not visible before due to depsgraph. Otherwise we would risk having all the collections in the depsgraph and I believe this is not the idea. An alternative would be to have a new depsgraph for viewports that are not local. Something to keep in mind if we do per-viewport current frame in the future. So for now what we do is to only allow collections visibility to be disabled/hidden in this mode. Note 2: hide_viewport (the eye icon) doesn't really matter for depsgraph. So after the merge we can still ignore it to show the collections locally in a viewport with no problems for the depsgraph. Reviewers: brecht, sergey Subscribers: billreynish Related task: T61327 Differential Revision: https://developer.blender.org/D5611 --- source/blender/windowmanager/intern/wm_files.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/windowmanager') diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 01e3cf4f329..bb66c2e7d35 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -2245,6 +2245,7 @@ static int wm_open_mainfile__open(bContext *C, wmOperator *op) if (G.fileflags & G_FILE_NO_UI) { ED_outliner_select_sync_from_all_tag(C); } + ED_view3d_local_collections_reset(C, (G.fileflags & G_FILE_NO_UI) != 0); return OPERATOR_FINISHED; } else { -- cgit v1.2.3