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:
authorMartin Poirier <theeth@yahoo.com>2009-12-29 01:48:10 +0300
committerMartin Poirier <theeth@yahoo.com>2009-12-29 01:48:10 +0300
commitd64834a6ce5f079c7c6c14e4938efc1dc890ffd3 (patch)
treec3c7a79c54641d60fcd8dc2f73ddc500b1b6e368 /source/blender/makesrna/intern/rna_access.c
parent1503c90f6b1bd1e910f018a8d6d1e13b9e27767f (diff)
Python attribute lookup. Don't use RNA functions that don't have defined callbacks (can happen for operator functions used for registration only).
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r--source/blender/makesrna/intern/rna_access.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 9cc08b297e5..7dcc72e4158 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -3479,6 +3479,11 @@ int RNA_function_flag(FunctionRNA *func)
return func->flag;
}
+int RNA_function_defined(FunctionRNA *func)
+{
+ return func->call != NULL;
+}
+
PropertyRNA *RNA_function_get_parameter(PointerRNA *ptr, FunctionRNA *func, int index)
{
PropertyRNA *parm;