Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2021-08-10 11:27:57 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-08-10 16:44:53 +0300
commit9c0f11344e77eb4062ddb08502317d287cce4bc8 (patch)
tree8d84bce4a73082b54e7917d0a9ed294a491a2390 /source/blender
parent05879f2c36e9e59ca62011aafb266a7b8dd64656 (diff)
Fix T90564: Crash when linking 2 node inputs
Caused by {rB37570a73170e}. Above commit wasnt taking into account that at this point the link could still be NULL. Maniphest Tasks: T90564 Differential Revision: https://developer.blender.org/D12180
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/intern/node.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/node.cc b/source/blender/blenkernel/intern/node.cc
index 4aec5a9e667..1bf95369794 100644
--- a/source/blender/blenkernel/intern/node.cc
+++ b/source/blender/blenkernel/intern/node.cc
@@ -2364,7 +2364,7 @@ bNodeLink *nodeAddLink(
ntree->update |= NTREE_UPDATE_LINKS;
}
- if (link->tosock->flag & SOCK_MULTI_INPUT) {
+ if (link != nullptr && link->tosock->flag & SOCK_MULTI_INPUT) {
link->multi_input_socket_index = node_count_links(ntree, link->tosock) - 1;
}