From 6c9a88234038f500c3e75472088f14dff05d073b Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Wed, 22 Apr 2020 13:50:21 +0200 Subject: Fix T75964: changing object's viewport display color does not update cycles Caused by rB00466e756e33. While that commit sounds logical, Cycles uses is_updated_transform() to detect updates. Now introduce is_updated_shading() and use that on top. Maniphest Tasks: T75964 Differential Revision: https://developer.blender.org/D7493 --- intern/cycles/blender/blender_sync.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/cycles/blender/blender_sync.cpp') diff --git a/intern/cycles/blender/blender_sync.cpp b/intern/cycles/blender/blender_sync.cpp index 9e95cdb3f20..f4c100bcd2b 100644 --- a/intern/cycles/blender/blender_sync.cpp +++ b/intern/cycles/blender/blender_sync.cpp @@ -142,7 +142,7 @@ void BlenderSync::sync_recalc(BL::Depsgraph &b_depsgraph, BL::SpaceView3D &b_v3d BL::Object b_ob(b_id); const bool updated_geometry = b_update->is_updated_geometry(); - if (b_update->is_updated_transform()) { + if (b_update->is_updated_transform() || b_update->is_updated_shading()) { object_map.set_recalc(b_ob); light_map.set_recalc(b_ob); } -- cgit v1.2.3