From 1e2e20fe3ccfd46894b3e0b7c2141860eeea3eef Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 3 Apr 2024 15:06:32 +0200 Subject: [PATCH] Fix #120200: Sculpting is slow with modifier with driver A regression caused by 7a2d04a5c4 Safest solution is to consider that shading changes will take care of other components explicitly when/if needed. Pull Request: https://projects.blender.org/blender/blender/pulls/120207 --- source/blender/depsgraph/intern/depsgraph_tag.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc index 2919e43f8fc..d764a89e6da 100644 --- a/source/blender/depsgraph/intern/depsgraph_tag.cc +++ b/source/blender/depsgraph/intern/depsgraph_tag.cc @@ -531,8 +531,8 @@ void deg_graph_tag_parameters_if_needed(Main *bmain, } /* Clear flags which are known to not affect parameters usable by drivers. */ - const uint clean_flags = flags & - ~(ID_RECALC_SYNC_TO_EVAL | ID_RECALC_SELECT | ID_RECALC_BASE_FLAGS); + const uint clean_flags = flags & ~(ID_RECALC_SYNC_TO_EVAL | ID_RECALC_SELECT | + ID_RECALC_BASE_FLAGS | ID_RECALC_SHADING); if (clean_flags == 0) { /* Changes are limited to only things which are not usable by drivers. */