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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-09-11 14:17:17 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-09-11 14:17:17 +0400
commit5eb1d5e3dcf4160b62118935c803f411b7283e62 (patch)
tree4d723283e535f62e9daa3c1b110825e9ceadf2c4 /source/blender/blenkernel/intern/node.c
parent7b98b5d34ee5b8b383a97d1a83cc87d6666fa5ef (diff)
Fix for bug #17593: glsl crash using a texture node without a
texture assigned.
Diffstat (limited to 'source/blender/blenkernel/intern/node.c')
-rw-r--r--source/blender/blenkernel/intern/node.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c
index 4dfe651c01f..94a21cdd5df 100644
--- a/source/blender/blenkernel/intern/node.c
+++ b/source/blender/blenkernel/intern/node.c
@@ -2378,8 +2378,8 @@ static void gpu_from_node_stack(ListBase *sockets, bNodeStack **ns, GPUNodeStack
gs[i].type= GPU_NONE;
gs[i].name = "";
- gs[i].hasinput= ns[i]->hasinput;
- gs[i].hasoutput= ns[i]->hasinput;
+ gs[i].hasinput= ns[i]->hasinput && ns[i]->data;
+ gs[i].hasoutput= ns[i]->hasinput && ns[i]->data;
gs[i].sockettype= ns[i]->sockettype;
}
@@ -2393,7 +2393,7 @@ static void data_from_gpu_stack(ListBase *sockets, bNodeStack **ns, GPUNodeStack
for (sock=sockets->first, i=0; sock; sock=sock->next, i++) {
ns[i]->data= gs[i].link;
- ns[i]->hasinput= gs[i].hasinput;
+ ns[i]->hasinput= gs[i].hasinput && gs[i].link;
ns[i]->hasoutput= gs[i].hasoutput;
ns[i]->sockettype= gs[i].sockettype;
}