[Bf-blender-cvs] [7415b9f] master: Fix (unreported) some RNA func definitions setting flags of other func parameters!
Bastien Montagne
noreply at git.blender.org
Mon Dec 12 15:59:37 CET 2016
Commit: 7415b9ffa310d8f55e38861b84d2f275f4d36370
Author: Bastien Montagne
Date: Mon Dec 12 15:54:16 2016 +0100
Branches: master
https://developer.blender.org/rB7415b9ffa310d8f55e38861b84d2f275f4d36370
Fix (unreported) some RNA func definitions setting flags of other func parameters!
Both found cases where luckily harmless, though...
===================================================================
M source/blender/makesrna/intern/rna_depsgraph.c
M source/blender/makesrna/intern/rna_render.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_depsgraph.c b/source/blender/makesrna/intern/rna_depsgraph.c
index b0e02a4..2748bd8 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 946b20c..d69ae2b 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");
More information about the Bf-blender-cvs
mailing list