Fix #130084: GPv3: Disable overlay does not work in sculpt mode

The cache population call was missing the "hide overlay" check.

Pull Request: https://projects.blender.org/blender/blender/pulls/130109
This commit is contained in:
Pratik Borhade
2024-11-11 12:08:13 +01:00
committed by Falk David
parent a274c4da6c
commit 83396c86fc

View File

@@ -498,7 +498,7 @@ static void OVERLAY_cache_populate(void *vedata, Object *ob)
else if (in_sculpt_curve_mode) {
OVERLAY_sculpt_curves_cache_populate(data, ob);
}
else if (in_grease_pencil_sculpt_mode) {
else if (in_grease_pencil_sculpt_mode && !pd->hide_overlays) {
OVERLAY_sculpt_grease_pencil_cache_populate(data, ob);
}