[Bf-blender-cvs] [b4ba1068c1f] master: Depsgraph: Cleanup, trailing whitespace and braces
Sergey Sharybin
noreply at git.blender.org
Wed Oct 25 12:13:26 CEST 2017
Commit: b4ba1068c1f2cdd5023929d7c5935a607b76bd9f
Author: Sergey Sharybin
Date: Wed Oct 25 12:07:51 2017 +0200
Branches: master
https://developer.blender.org/rBb4ba1068c1f2cdd5023929d7c5935a607b76bd9f
Depsgraph: Cleanup, trailing whitespace and braces
===================================================================
M source/blender/makesrna/intern/rna_depsgraph.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_depsgraph.c b/source/blender/makesrna/intern/rna_depsgraph.c
index 3a0aa506765..4a53cea5f95 100644
--- a/source/blender/makesrna/intern/rna_depsgraph.c
+++ b/source/blender/makesrna/intern/rna_depsgraph.c
@@ -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");
More information about the Bf-blender-cvs
mailing list