From 72370b92be0db6c7726e1b74e73c393ed1d00538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dietrich?= Date: Thu, 25 Feb 2021 02:16:58 +0100 Subject: Fix T85926: Cycles missing viewport updates when making materials single user This issue seems to be caused by the reallocation flag not being set on the device shader data array so it was never updated on the GPU although the host memory was modified. --- intern/cycles/render/geometry.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/intern/cycles/render/geometry.cpp b/intern/cycles/render/geometry.cpp index 2c2b987e5c0..9f8bf68dadf 100644 --- a/intern/cycles/render/geometry.cpp +++ b/intern/cycles/render/geometry.cpp @@ -1585,6 +1585,7 @@ void GeometryManager::device_update_preprocess(Device *device, Scene *scene, Pro dscene->tri_patch.tag_realloc(); dscene->tri_vnormal.tag_realloc(); dscene->tri_patch_uv.tag_realloc(); + dscene->tri_shader.tag_realloc(); dscene->patches.tag_realloc(); } -- cgit v1.2.3