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@blender.org>2022-02-28 12:54:07 +0300
committerSergey Sharybin <sergey@blender.org>2022-02-28 12:54:07 +0300
commit6bbf63f25195d97c2770470a973bafb35dda5e28 (patch)
tree3b6628eefb087d58b4a376a8a34d6ab7493f56b2
parentcb736d2f030e3a66a6f65438b257452124c12523 (diff)
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.
-rw-r--r--source/blender/depsgraph/intern/depsgraph_tag.cc4
1 files changed, 4 insertions, 0 deletions
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);