diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-12-12 17:54:16 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-12-12 17:54:16 +0300 |
commit | 7415b9ffa310d8f55e38861b84d2f275f4d36370 (patch) | |
tree | d5181a19ce38767e641ab74a0588d78a7c7a63a4 /source/blender | |
parent | 440d1042798113a0e8115ea1f1d016a44712e7a0 (diff) |
Fix (unreported) some RNA func definitions setting flags of other func parameters!
Both found cases where luckily harmless, though...
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesrna/intern/rna_depsgraph.c | 3 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_render.c | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_depsgraph.c b/source/blender/makesrna/intern/rna_depsgraph.c index b0e02a4eeb0..2748bd8b877 100644 --- a/source/blender/makesrna/intern/rna_depsgraph.c +++ b/source/blender/makesrna/intern/rna_depsgraph.c @@ -97,8 +97,7 @@ static void rna_def_depsgraph(BlenderRNA *brna) func = RNA_def_function(srna, "debug_rebuild", "rna_Depsgraph_debug_rebuild"); RNA_def_function_flag(func, FUNC_USE_MAIN); - RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); - + func = RNA_def_function(srna, "debug_stats", "rna_Depsgraph_debug_stats"); RNA_def_function_ui_description(func, "Report the number of elements in the Dependency Graph"); RNA_def_function_flag(func, FUNC_USE_REPORTS); diff --git a/source/blender/makesrna/intern/rna_render.c b/source/blender/makesrna/intern/rna_render.c index 946b20c916d..d69ae2b78bb 100644 --- a/source/blender/makesrna/intern/rna_render.c +++ b/source/blender/makesrna/intern/rna_render.c @@ -575,7 +575,6 @@ static void rna_def_render_engine(BlenderRNA *brna) RNA_def_function_ui_description(func, "Update memory usage statistics"); RNA_def_float(func, "memory_used", 0, 0.0f, FLT_MAX, "", "Current memory usage in megabytes", 0.0f, FLT_MAX); RNA_def_float(func, "memory_peak", 0, 0.0f, FLT_MAX, "", "Peak memory usage in megabytes", 0.0f, FLT_MAX); - RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); func = RNA_def_function(srna, "report", "RE_engine_report"); RNA_def_function_ui_description(func, "Report info, warning or error messages"); |