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:
authorCampbell Barton <ideasman42@gmail.com>2013-06-01 08:06:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-06-01 08:06:38 +0400
commit2d4a682a8e48e41af2867bc71a621eb0fac27b1e (patch)
tree040f6811f870d72f8268250b61f719b3eef2f0a7 /source/blender/makesrna/intern/rna_define.c
parent0ad88d1001449f71b9448e237e6f05fb244f1a85 (diff)
add popup menu to allow python scripts to show popups without having to define a menu class first.
Diffstat (limited to 'source/blender/makesrna/intern/rna_define.c')
-rw-r--r--source/blender/makesrna/intern/rna_define.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_define.c b/source/blender/makesrna/intern/rna_define.c
index 6649d58d718..20b1d56b22e 100644
--- a/source/blender/makesrna/intern/rna_define.c
+++ b/source/blender/makesrna/intern/rna_define.c
@@ -3015,6 +3015,7 @@ void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
return;
}
+ BLI_assert(func->c_ret == NULL);
func->c_ret = ret;
RNA_def_function_output(func, ret);