diff options
author | Sergey Sharybin <sergey@blender.org> | 2021-05-26 12:16:47 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2021-05-26 12:16:47 +0300 |
commit | 534fcab9945c718f3b707f3afc1f7508f28e4cbb (patch) | |
tree | 8edc9940390c4a06457c5e8ffc92a97a2b6990b1 /intern/cycles/blender/blender_sync.cpp | |
parent | a72a5809481217de6a6440ed80c7a22bb31a227a (diff) |
Fix T88552: Cycles changing Render Passes in viewport does not work
Diffstat (limited to 'intern/cycles/blender/blender_sync.cpp')
-rw-r--r-- | intern/cycles/blender/blender_sync.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/intern/cycles/blender/blender_sync.cpp b/intern/cycles/blender/blender_sync.cpp index 64a2adccfe6..bacf57df48e 100644 --- a/intern/cycles/blender/blender_sync.cpp +++ b/intern/cycles/blender/blender_sync.cpp @@ -224,8 +224,18 @@ void BlenderSync::sync_recalc(BL::Depsgraph &b_depsgraph, BL::SpaceView3D &b_v3d if (b_v3d) { BlenderViewportParameters new_viewport_parameters(b_v3d); + if (viewport_parameters.modified(new_viewport_parameters)) { world_recalc = true; + has_updates_ = true; + } + + if (!has_updates_) { + Film *film = scene->film; + + const PassType new_display_pass = new_viewport_parameters.get_viewport_display_render_pass( + b_v3d); + has_updates_ |= film->get_display_pass() != new_display_pass; } } } |