[Bf-blender-cvs] [05c76990c83] blender2.8: Depsgraph: Tag datablock with original update flag

Sergey Sharybin noreply at git.blender.org
Thu Mar 29 11:44:27 CEST 2018


Commit: 05c76990c8372089dd94a3efd0d9a795e466f30d
Author: Sergey Sharybin
Date:   Thu Mar 29 10:08:56 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB05c76990c8372089dd94a3efd0d9a795e466f30d

Depsgraph: Tag datablock with original update flag

Tagging based on components might not be granular enough.

For example, for particles we would want to know what part
of particles was changed exactly. For the flushing we wouldn't
worry too much, because we will want less granular updates
there anyway.

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

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 ea53b18f55b..1f643dc9615 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -409,6 +409,7 @@ void deg_graph_id_tag_update(Main *bmain, Depsgraph *graph, ID *id, int flag)
 		}
 		deg_graph_id_tag_legacy_compat(bmain, id, (eDepsgraph_Tag)0);
 	}
+	id->recalc |= flag;
 	int current_flag = flag;
 	while (current_flag != 0) {
 		eDepsgraph_Tag tag =



More information about the Bf-blender-cvs mailing list