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:
authorRobin Allen <roblovski@gmail.com>2009-08-19 04:46:06 +0400
committerRobin Allen <roblovski@gmail.com>2009-08-19 04:46:06 +0400
commite21c1dde810b3447eaa1f6a667ae027978b18d9b (patch)
tree81ffd3f7b150f6caef9c59a1dc5a64a44d0c3dbd /source/blender/nodes
parentd37d6738946bfecd2cf15f13e3067325bb227542 (diff)
Texture node previews: Well and truly fixed.
(Probably.)
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/intern/TEX_util.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/source/blender/nodes/intern/TEX_util.c b/source/blender/nodes/intern/TEX_util.c
index 0bb9d887ae3..a6a5877722b 100644
--- a/source/blender/nodes/intern/TEX_util.c
+++ b/source/blender/nodes/intern/TEX_util.c
@@ -246,14 +246,12 @@ void ntreeTexUpdatePreviews(bNodeTree* nodetree)
for(tex= G.main->tex.first; tex; tex= tex->id.next)
if(tex->nodetree == nodetree) break;
- if(!tex) return;
-
- dummy_texres.nor = 0;
-
- ntreeBeginExecTree(nodetree);
- ntreeTexExecTree(nodetree, &dummy_texres, coord, 0, 0, 1, 0, tex, 0, 0);
- ntreeEndExecTree(nodetree);
+ if(tex) {
+ dummy_texres.nor = 0;
+ ntreeBeginExecTree(nodetree);
+ ntreeTexExecTree(nodetree, &dummy_texres, coord, 0, 0, 1, 0, tex, 0, 0);
+ }
}
char* ntreeTexOutputMenu(bNodeTree *ntree)