[Bf-blender-cvs] [6bbf63f2519] blender-v3.1-release: Fix T96054: Switching vertex group does not update display
Sergey Sharybin
noreply at git.blender.org
Mon Feb 28 10:57:01 CET 2022
Commit: 6bbf63f25195d97c2770470a973bafb35dda5e28
Author: Sergey Sharybin
Date: Mon Feb 28 10:54:07 2022 +0100
Branches: blender-v3.1-release
https://developer.blender.org/rB6bbf63f25195d97c2770470a973bafb35dda5e28
Fix T96054: Switching vertex group does not update display
Caused by 0f89bcdbebf5 and was not fully addressed by 6f9828289f39:
tagging an ID with flag 0 is to be seen as an explicit tag for copy
on write.
Would be nice to either consolidate code paths of flag 0 and explicit
component tag, or get rid of tagging with 0 flag, but that is above of
what we can do for the upcoming release.
===================================================================
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 11074b5bf72..f8de6b4580c 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -499,6 +499,10 @@ void deg_graph_node_tag_zero(Main *bmain,
if (comp_node->type == NodeType::ANIMATION) {
continue;
}
+ else if (comp_node->type == NodeType::COPY_ON_WRITE) {
+ id_node->is_cow_explicitly_tagged = true;
+ }
+
comp_node->tag_update(graph, update_source);
}
deg_graph_id_tag_legacy_compat(bmain, graph, id, (IDRecalcFlag)0, update_source);
More information about the Bf-blender-cvs
mailing list