[Bf-blender-cvs] [3a095a1] depsgraph_refactor: Depsgraph: Add scene.depsgraph_rebuild()

Sergey Sharybin noreply at git.blender.org
Wed Dec 3 14:13:22 CET 2014


Commit: 3a095a1e7ee711a333528653e60f1a5b8b272ab2
Author: Sergey Sharybin
Date:   Wed Dec 3 18:12:35 2014 +0500
Branches: depsgraph_refactor
https://developer.blender.org/rB3a095a1e7ee711a333528653e60f1a5b8b272ab2

Depsgraph: Add scene.depsgraph_rebuild()

This could be handy for the time being all the areas does proper
tag for relations rebuild.

===================================================================

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 6d6914a..8eb8175 100644
--- a/source/blender/makesrna/intern/rna_depsgraph.c
+++ b/source/blender/makesrna/intern/rna_depsgraph.c
@@ -53,6 +53,11 @@ static void rna_Depsgraph_debug_graphviz(Depsgraph *graph, const char *filename)
 	fclose(f);
 }
 
+static void rna_Depsgraph_debug_rebuild(Depsgraph *UNUSED(graph), Main *bmain)
+{
+	DAG_relations_tag_update(bmain);
+}
+
 #else
 
 static void rna_def_depsgraph(BlenderRNA *brna)
@@ -68,6 +73,10 @@ static void rna_def_depsgraph(BlenderRNA *brna)
 	parm = RNA_def_string_file_path(func, "filename", NULL, FILE_MAX, "File Name",
 	                                "File in which to store graphviz debug output");
 	RNA_def_property_flag(parm, PROP_REQUIRED);
+
+	func = RNA_def_function(srna, "debug_rebuild", "rna_Depsgraph_debug_rebuild");
+	RNA_def_function_flag(func, FUNC_USE_MAIN);
+	RNA_def_property_flag(parm, PROP_REQUIRED);
 }
 
 void RNA_def_depsgraph(BlenderRNA *brna)




More information about the Bf-blender-cvs mailing list