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:
@@ -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();
|
||||
|
||||
@@ -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_);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user