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-03-22 18:45:42 +0300
committerDalai Felinto <dfelinto@gmail.com>2019-03-22 18:46:39 +0300
commit9a49a26eb38ba856664c6215ea62fd77464e72ce (patch)
tree7aca528f59902afb24b3a98fd12135370a549635 /source/blender/editors/render/render_update.c
parent043dd64c269702d21666ef0af4e7b02f6fe507b1 (diff)
Fix T62348: Cycles - Viewport rendering not update on switching viewlayer
It updates only the main window you edit and the non-main window children of this main one. Reviewers: sergey, brecht Differential Revision: https://developer.blender.org/D4528
Diffstat (limited to 'source/blender/editors/render/render_update.c')
-rw-r--r--source/blender/editors/render/render_update.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/render/render_update.c b/source/blender/editors/render/render_update.c
index d99c9847ed6..bbd73b581f4 100644
--- a/source/blender/editors/render/render_update.c
+++ b/source/blender/editors/render/render_update.c
@@ -199,6 +199,13 @@ void ED_render_engine_changed(Main *bmain)
}
}
+void ED_render_view_layer_changed(Main *bmain, bScreen *sc)
+{
+ for (ScrArea *sa = sc->areabase.first; sa; sa = sa->next) {
+ ED_render_engine_area_exit(bmain, sa);
+ }
+}
+
/***************************** Updates ***********************************
* ED_render_id_flush_update gets called from DEG_id_tag_update, to do *
* editor level updates when the ID changes. when these ID blocks are in *