Fix T80043: missing Cycles displacement update when relinking output sockets

This commit is contained in:
Brecht Van Lommel 2020-11-05 19:17:18 +01:00
parent 60859d8912
commit b053312bdd
Notes: blender-bot 2023-02-13 21:24:52 +01:00
Referenced by issue #80043, Output switching in Separate XYZ node fails to update Displacement without going in and out of edit mode.
1 changed files with 1 additions and 0 deletions

View File

@ -762,6 +762,7 @@ void ShaderGraph::compute_displacement_hash()
foreach (ShaderInput *input, node->inputs) {
int link_id = (input->link) ? input->link->parent->id : 0;
md5.append((uint8_t *)&link_id, sizeof(link_id));
md5.append((input->link) ? input->link->name().c_str() : "");
}
if (node->special_type == SHADER_SPECIAL_TYPE_OSL) {