Fix #105553: do not copy "Roughness" value from the previous node #105596
|
@ -268,10 +268,16 @@ static void node_socket_add_replace(const bContext *C,
|
|||
nodeRemLink(ntree, link);
|
||||
}
|
||||
|
||||
/* NOTE: some properties have different (physical) meanings among different nodes, even
|
||||
* when they share the same name; the values of these sockets should not be copied. For
|
||||
* now a few special cases are made, we could implement some more sophisticated mechanism
|
||||
* if necessary. */
|
||||
if (!STREQ(sock_from->name, "Roughness")) {
|
||||
node_socket_copy_default_value(sock_from, sock_prev);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* also preserve mapping for texture nodes */
|
||||
if (node_from->typeinfo->nclass == NODE_CLASS_TEXTURE &&
|
||||
|
|
Loading…
Reference in New Issue