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:
authorLukas Toenne <lukas.toenne@googlemail.com>2013-05-29 16:43:35 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2013-05-29 16:43:35 +0400
commit9eb93a9d9c775f950f43dab61653f6365e0f3123 (patch)
tree5f8455a31b04f5891449557205882e0ddba8197a /source/blender/makesrna
parent0b51ecb9a8c902d42c6a59d4290be1a7a30b03c1 (diff)
Node options draw function fix for C nodes: use the default button draw function as a fallback if no extended draw function is defined.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_nodetree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index 8bc446d7bfc..825ec43ebdc 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -2329,6 +2329,11 @@ static void rna_NodeInternal_draw_buttons_ext(ID *id, bNode *node, struct bConte
RNA_pointer_create(id, &RNA_Node, node, &ptr);
node->typeinfo->uifuncbut(layout, C, &ptr);
}
+ else if (node->typeinfo->uifunc) {
+ PointerRNA ptr;
+ RNA_pointer_create(id, &RNA_Node, node, &ptr);
+ node->typeinfo->uifunc(layout, C, &ptr);
+ }
}
static void rna_CompositorNode_tag_need_exec(bNode *node)