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>2013-04-16 03:12:49 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-04-16 03:12:49 +0400
commitf4fe1b8e77e443b899466acd951628a2f68e5049 (patch)
tree432b18e28ec39e2882c325a3221e7b6adf7d6876 /source/blender/editors/space_node/node_add.c
parentafb4b65167165613f177a531bd3d4dcb3649c1c6 (diff)
Fix a few warnings. One was an actual bug in freestyle where stroke attributes
were not properly interpolated.
Diffstat (limited to 'source/blender/editors/space_node/node_add.c')
-rw-r--r--source/blender/editors/space_node/node_add.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_add.c b/source/blender/editors/space_node/node_add.c
index 975a29851db..0425ec58f83 100644
--- a/source/blender/editors/space_node/node_add.c
+++ b/source/blender/editors/space_node/node_add.c
@@ -445,6 +445,8 @@ static int new_node_tree_exec(bContext *C, wmOperator *op)
}
else if (snode)
idname = snode->tree_idname;
+ else
+ return OPERATOR_CANCELLED;
if (RNA_struct_property_is_set(op->ptr, "name")) {
RNA_string_get(op->ptr, "name", treename);