Fix T80043: missing Cycles displacement update when relinking output sockets
This commit is contained in:
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.
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue