It updates only the main window you edit and the non-main window children of this main one.
(T62348)
Differential D4528
Fix T62348: Cycles - Viewport rendering not update on switching viewlayer Authored by Dalai Felinto (dfelinto) on Mar 15 2019, 10:02 PM.
Details It updates only the main window you edit and the non-main window children of this main one. (T62348)
Diff Detail
Event TimelineComment Actions Switching view layer does not change scene, so tagging it fo update doesn't seem correct. Keep in mind, doing that will re-set all possibly ongoing viewport renders in other windows (which should be avoidable since dependency graph is per-viewlayer). Comment Actions I suggest to add a ED_render_view_layer_changed which calls ED_render_engine_area_exit for every editor affected. Render engines can't really reuse any state from another view layer. Comment Actions
Comment Actions
I refactored the function a bit to tackle both parent and children at the same time. | ||||||