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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-05-04 15:49:58 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-05-04 15:49:58 +0400
commitdf553582e96569e49a4d28c167c5dd334be5f216 (patch)
treeab1be5aecd7fd91ce59e8c5f820b0c408c28c78d /source/blender/nodes/texture/nodes/node_texture_common.c
parentc01aa64247357570e4f469185240a416075bd971 (diff)
Fix #31288: Blender crash when select a material
Quite the same issue as render crash on missed shader groups, needed a NULL-check in node exec function as well.
Diffstat (limited to 'source/blender/nodes/texture/nodes/node_texture_common.c')
-rw-r--r--source/blender/nodes/texture/nodes/node_texture_common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/nodes/texture/nodes/node_texture_common.c b/source/blender/nodes/texture/nodes/node_texture_common.c
index 2a9107f9498..1eaf9b2b0fe 100644
--- a/source/blender/nodes/texture/nodes/node_texture_common.c
+++ b/source/blender/nodes/texture/nodes/node_texture_common.c
@@ -110,6 +110,9 @@ static void group_execute(void *data, int thread, struct bNode *node, void *node
bNodeTreeExec *exec= (bNodeTreeExec*)nodedata;
bNodeThreadStack *nts;
+ if (!exec)
+ return;
+
/* XXX same behavior as trunk: all nodes inside group are executed.
* it's stupid, but just makes it work. compo redesign will do this better.
*/