Fix T79915: crash when changing to white noise texture
Reviewers: brecht, OmarSquircleArt Differential Revision: https://developer.blender.org/D8697
This commit is contained in:
parent
141a8ff6b3
commit
8bb93ca80a
Notes:
blender-bot
2023-02-14 11:29:52 +01:00
Referenced by issue #79915, Crash when changing the Color Surface to White Noise Texture Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
|
@ -281,7 +281,9 @@ static void node_socket_add_replace(const bContext *C,
|
|||
|
||||
/* also preserve mapping for texture nodes */
|
||||
if (node_from->typeinfo->nclass == NODE_CLASS_TEXTURE &&
|
||||
node_prev->typeinfo->nclass == NODE_CLASS_TEXTURE) {
|
||||
node_prev->typeinfo->nclass == NODE_CLASS_TEXTURE &&
|
||||
/* White noise texture node does not have NodeTexBase. */
|
||||
node_from->storage != NULL && node_prev->storage != NULL) {
|
||||
memcpy(node_from->storage, node_prev->storage, sizeof(NodeTexBase));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue