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:
authorCampbell Barton <ideasman42@gmail.com>2009-11-24 17:03:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-24 17:03:29 +0300
commit89f9d3873d5290dd34d32de5c55415e43ee1fe6a (patch)
tree94b40e6c211f4ff24678f47bdff1760a2b8391ea /source/blender/blenkernel/intern/node.c
parentf21eb0603bd4d25a7677da0e34e1bdf02b709dcd (diff)
bugfix [#19983] clicking onto normal input of a material node crash
actually happened when clicking on any input
Diffstat (limited to 'source/blender/blenkernel/intern/node.c')
-rw-r--r--source/blender/blenkernel/intern/node.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c
index 4c378d25a8c..a27c3b6494b 100644
--- a/source/blender/blenkernel/intern/node.c
+++ b/source/blender/blenkernel/intern/node.c
@@ -1675,7 +1675,9 @@ void ntreeSocketUseFlags(bNodeTree *ntree)
/* tag all thats in use */
for(link= ntree->links.first; link; link= link->next) {
- link->fromsock->flag |= SOCK_IN_USE;
+
+ if(link->fromsock) // FIXME, see below
+ link->fromsock->flag |= SOCK_IN_USE;
if(link->tosock) // FIXME This can be NULL, when dragging a new link in the UI, should probably copy the node tree for preview render - campbell
link->tosock->flag |= SOCK_IN_USE;
}