Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_depsgraph.c
| Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | static void rna_def_depsgraph(BlenderRNA *brna) | ||||
| PropertyRNA *parm; | PropertyRNA *parm; | ||||
| srna = RNA_def_struct(brna, "Depsgraph", NULL); | srna = RNA_def_struct(brna, "Depsgraph", NULL); | ||||
| RNA_def_struct_ui_text(srna, "Dependency Graph", ""); | RNA_def_struct_ui_text(srna, "Dependency Graph", ""); | ||||
| func = RNA_def_function(srna, "debug_graphviz", "rna_Depsgraph_debug_graphviz"); | func = RNA_def_function(srna, "debug_graphviz", "rna_Depsgraph_debug_graphviz"); | ||||
| parm = RNA_def_string_file_path(func, "filename", NULL, FILE_MAX, "File Name", | parm = RNA_def_string_file_path(func, "filename", NULL, FILE_MAX, "File Name", | ||||
| "File in which to store graphviz debug output"); | "File in which to store graphviz debug output"); | ||||
| RNA_def_property_flag(parm, PROP_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| func = RNA_def_function(srna, "debug_rebuild", "rna_Depsgraph_debug_rebuild"); | func = RNA_def_function(srna, "debug_rebuild", "rna_Depsgraph_debug_rebuild"); | ||||
| RNA_def_function_flag(func, FUNC_USE_MAIN); | RNA_def_function_flag(func, FUNC_USE_MAIN); | ||||
| RNA_def_property_flag(parm, PROP_REQUIRED); | |||||
| func = RNA_def_function(srna, "debug_stats", "rna_Depsgraph_debug_stats"); | 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_ui_description(func, "Report the number of elements in the Dependency Graph"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| } | } | ||||
| void RNA_def_depsgraph(BlenderRNA *brna) | void RNA_def_depsgraph(BlenderRNA *brna) | ||||
| { | { | ||||
| rna_def_depsgraph(brna); | rna_def_depsgraph(brna); | ||||
| } | } | ||||
| #endif | #endif | ||||