Commit: 534fcab9945c718f3b707f3afc1f7508f28e4cbb
Author: Sergey Sharybin
Date: Wed May 26 11:16:47 2021 +0200
Branches: master
https://developer.blender.org/rB534fcab9945c718f3b707f3afc1f7508f28e4cbb
Fix T88552: Cycles changing Render Passes in viewport does not work
===================================================================
M intern/cycles/blender/blender_sync.cpp
===================================================================
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;
}
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs