[Bf-blender-cvs] [2296b9776a8] blender2.8: Depsgraph: Tag all id_types on_visible_update
Dalai Felinto
noreply at git.blender.org
Thu Nov 30 12:29:38 CET 2017
Commit: 2296b9776a8ba8ff648c2de2228c007a77881e94
Author: Dalai Felinto
Date: Thu Nov 30 09:14:43 2017 -0200
Branches: blender2.8
https://developer.blender.org/rB2296b9776a8ba8ff648c2de2228c007a77881e94
Depsgraph: Tag all id_types on_visible_update
We need all id nodes to be evaluated at least once when opening a file.
This is particuarly required for the upcoming group collection patch.
===================================================================
M source/blender/depsgraph/intern/depsgraph_tag.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc
index c2711eb3f15..dd8b643d1c3 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -461,14 +461,6 @@ void deg_graph_on_visible_update(Main *bmain, Depsgraph *graph)
/* Make sure objects are up to date. */
foreach (DEG::IDDepsNode *id_node, graph->id_nodes) {
const ID_Type id_type = GS(id_node->id_orig->name);
- /* TODO(sergey): Special exception for now. */
- if (id_type == ID_MSK) {
- deg_graph_id_tag_update(bmain, graph, id_node->id_orig, 0);
- }
- if (id_type != ID_OB) {
- /* Ignore non-object nodes on visibility changes. */
- continue;
- }
int flag = 0;
/* We only tag components which needs an update. Tagging everything is
* not a good idea because that might reset particles cache (or any
More information about the Bf-blender-cvs
mailing list