FIx #132007: Overlay-Next: Center view to mouse sculpt flicker

Skip passes that draw to render_fb directly if is_depth_only_drawing.
This commit is contained in:
Miguel Pozo
2025-01-09 18:21:37 +01:00
parent 6ddebc0888
commit f005f4d562
2 changed files with 2 additions and 1 deletions

View File

@@ -99,7 +99,7 @@ class Cameras : Overlay {
enabled_ = state.is_space_v3d();
extras_enabled_ = enabled_ && state.show_extras();
motion_tracking_enabled_ = enabled_ && state.v3d->flag2 & V3D_SHOW_RECONSTRUCTION;
images_enabled_ = enabled_ && !res.is_selection();
images_enabled_ = enabled_ && !res.is_selection() && !state.is_depth_only_drawing;
enabled_ = extras_enabled_ || images_enabled_ || motion_tracking_enabled_;
offset_data_ = state.offset_data_get();

View File

@@ -51,6 +51,7 @@ class Sculpts : Overlay {
show_mask_ = state.show_sculpt_mask();
enabled_ = state.is_space_v3d() && !state.xray_enabled && !res.is_selection() &&
!state.is_depth_only_drawing &&
ELEM(state.object_mode, OB_MODE_SCULPT_CURVES, OB_MODE_SCULPT) &&
(show_curves_cage_ || show_face_set_ || show_mask_);