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
This commit is contained in:
Sergey Sharybin 2024-04-03 15:06:32 +02:00 committed by Sergey Sharybin
parent 4bdf5bf2e2
commit 1e2e20fe3c
1 changed files with 2 additions and 2 deletions

View File

@ -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. */