[Bf-blender-cvs] [25c7d55] depsgraph_refactor: Depsgraph: Remove RNA call to rebuild the DAG
Sergey Sharybin
noreply at git.blender.org
Thu Nov 6 11:15:50 CET 2014
Commit: 25c7d552173bfbbc8df1d98685aaf8ebf974fe10
Author: Sergey Sharybin
Date: Thu Nov 6 11:13:13 2014 +0100
Branches: depsgraph_refactor
https://developer.blender.org/rB25c7d552173bfbbc8df1d98685aaf8ebf974fe10
Depsgraph: Remove RNA call to rebuild the DAG
It is now should happen automatically from the scene update,
should be no need in manual tricks now.
===================================================================
M source/blender/makesrna/intern/rna_scene.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index aa49221..5e5dfa8 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -1560,16 +1560,6 @@ static char *rna_MeshStatVis_path(PointerRNA *UNUSED(ptr))
return BLI_strdup("tool_settings.statvis");
}
-#pragma message("DEPSGRAPH PORTING XXX: The depsgraph_rebuild function in scene RNA is temporary")
-static void rna_Scene_depsgraph_rebuild(Scene *scene, Main *bmain)
-{
- if (scene->depsgraph)
- DEG_graph_free(scene->depsgraph);
-
- scene->depsgraph = DEG_graph_new();
- DEG_graph_build_from_scene(scene->depsgraph, bmain, scene);
-}
-
/* note: without this, when Multi-Paint is activated/deactivated, the colors
* will not change right away when multiple bones are selected, this function
* is not for general use and only for the few cases where changing scene
@@ -5795,10 +5785,6 @@ void RNA_def_scene(BlenderRNA *brna)
RNA_def_property_struct_type(prop, "Depsgraph");
RNA_def_property_ui_text(prop, "Dependency Graph", "Dependencies in the scene data");
- func = RNA_def_function(srna, "depsgraph_rebuild", "rna_Scene_depsgraph_rebuild");
- RNA_def_function_flag(func, FUNC_USE_MAIN);
- RNA_def_function_ui_description(func, "Rebuild the dependency graph");
-
/* Nestled Data */
/* *** Non-Animated *** */
RNA_define_animate_sdna(false);
More information about the Bf-blender-cvs
mailing list