Blender Git Loki
Git Commits -> Revision 1eeb846
Revision 1eeb846 by Brecht Van Lommel (master) January 29, 2018, 16:07 (GMT) |
Fix Cycles viewport render not updating when tweaking displacement shader. This was disabled to avoid updating the geometry every time when the material includes displacement, because there was no way to distinguish between surface shader and displacement updates. As a solution, we now compute an MD5 hash of the nodes linked to the displacement socket, and only update the mesh if that changes. Differential Revision: https://developer.blender.org/D3018 |
Commit Details:
Full Hash: 1eeb846e781dac3f55d6c108d0fc4c3cfe88f4cc
Parent Commit: fb94167
Lines Changed: +87, -10
11 Modified Paths:
/intern/cycles/blender/blender_mesh.cpp (+1, -1) (Diff)
/intern/cycles/graph/node.cpp (+20, -0) (Diff)
/intern/cycles/graph/node.h (+4, -0) (Diff)
/intern/cycles/render/film.cpp (+1, -1) (Diff)
/intern/cycles/render/graph.cpp (+28, -1) (Diff)
/intern/cycles/render/graph.h (+3, -0) (Diff)
/intern/cycles/render/mesh.cpp (+2, -2) (Diff)
/intern/cycles/render/shader.cpp (+19, -4) (Diff)
/intern/cycles/render/shader.h (+1, -1) (Diff)
/intern/cycles/util/util_md5.cpp (+7, -0) (Diff)
/intern/cycles/util/util_md5.h (+1, -0) (Diff)
/intern/cycles/graph/node.cpp (+20, -0) (Diff)
/intern/cycles/graph/node.h (+4, -0) (Diff)
/intern/cycles/render/film.cpp (+1, -1) (Diff)
/intern/cycles/render/graph.cpp (+28, -1) (Diff)
/intern/cycles/render/graph.h (+3, -0) (Diff)
/intern/cycles/render/mesh.cpp (+2, -2) (Diff)
/intern/cycles/render/shader.cpp (+19, -4) (Diff)
/intern/cycles/render/shader.h (+1, -1) (Diff)
/intern/cycles/util/util_md5.cpp (+7, -0) (Diff)
/intern/cycles/util/util_md5.h (+1, -0) (Diff)