Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-10-25 13:11:49 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-10-25 13:11:49 +0300
commitea5cf3ff7ae9a20fda9d26159a8ada6c2970aa48 (patch)
treee76815be5045aae68550560d809df0cfafc32486 /source/blender
parent0bbf2f9554d267951c18dd2d0eb86ceb308a9c11 (diff)
Depsgraph: Rework debug relations update function
Make it a tag for relations update function instead, since we will not be able to easily rebuild relations, and we wouldn't be able to iterate all scenes. This is a part of mowing depsgraph to be per-workspace/layer in 2.8 branch.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/intern/rna_depsgraph.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/source/blender/makesrna/intern/rna_depsgraph.c b/source/blender/makesrna/intern/rna_depsgraph.c
index 4a53cea5f95..adb99acef1f 100644
--- a/source/blender/makesrna/intern/rna_depsgraph.c
+++ b/source/blender/makesrna/intern/rna_depsgraph.c
@@ -42,8 +42,7 @@
#ifdef RNA_RUNTIME
-#include "BKE_report.h"
-
+#include "DEG_depsgraph_build.h"
#include "DEG_depsgraph_debug.h"
static void rna_Depsgraph_debug_graphviz(Depsgraph *graph, const char *filename)
@@ -56,14 +55,9 @@ static void rna_Depsgraph_debug_graphviz(Depsgraph *graph, const char *filename)
fclose(f);
}
-static void rna_Depsgraph_debug_rebuild(Depsgraph *UNUSED(graph), Main *bmain)
+static void rna_Depsgraph_debug_tag_update(Depsgraph *graph)
{
- Scene *sce;
- DAG_relations_tag_update(bmain);
- for (sce = bmain->scene.first; sce; sce = sce->id.next) {
- DAG_scene_relations_rebuild(bmain, sce);
- DEG_graph_on_visible_update(bmain, sce);
- }
+ DEG_graph_tag_relations_update(graph);
}
static void rna_Depsgraph_debug_stats(Depsgraph *graph, char *result)
@@ -91,8 +85,7 @@ static void rna_def_depsgraph(BlenderRNA *brna)
"File in which to store graphviz debug output");
RNA_def_parameter_flags(parm, 0, PARM_REQUIRED);
- func = RNA_def_function(srna, "debug_rebuild", "rna_Depsgraph_debug_rebuild");
- RNA_def_function_flag(func, FUNC_USE_MAIN);
+ func = RNA_def_function(srna, "debug_tag_update", "rna_Depsgraph_debug_tag_update");
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");