When undoing dyntopo actions, we have a fast path where if the mask layer was affected, we avoid a full depsgraph tagging and BVH rebuild. This tagging was missing recalculating the overall node visibility states, potentially preventing further brush strokes and actions from working if they filtered out fully hidden nodes. Pull Request: https://projects.blender.org/blender/blender/pulls/137502