Depsgraph: Cleanup, trailing whitespace and braces
This commit is contained in:
@@ -49,11 +49,10 @@
|
||||
static void rna_Depsgraph_debug_graphviz(Depsgraph *graph, const char *filename)
|
||||
{
|
||||
FILE *f = fopen(filename, "w");
|
||||
if (f == NULL)
|
||||
if (f == NULL) {
|
||||
return;
|
||||
|
||||
}
|
||||
DEG_debug_graphviz(graph, f, "Depsgraph", false);
|
||||
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
@@ -86,7 +85,7 @@ static void rna_def_depsgraph(BlenderRNA *brna)
|
||||
|
||||
srna = RNA_def_struct(brna, "Depsgraph", NULL);
|
||||
RNA_def_struct_ui_text(srna, "Dependency Graph", "");
|
||||
|
||||
|
||||
func = RNA_def_function(srna, "debug_graphviz", "rna_Depsgraph_debug_graphviz");
|
||||
parm = RNA_def_string_file_path(func, "filename", NULL, FILE_MAX, "File Name",
|
||||
"File in which to store graphviz debug output");
|
||||
|
||||
Reference in New Issue
Block a user