Overlay: Fix unreported bug: Edit mode overlays drawing during auto depth
This would double draw the edit cage on top of the other overlays.
This commit is contained in:
parent
95a018aa32
commit
96825403a6
|
@ -495,7 +495,7 @@ static void OVERLAY_draw_scene(void *vedata)
|
|||
OVERLAY_motion_path_draw(vedata);
|
||||
OVERLAY_extra_centers_draw(vedata);
|
||||
|
||||
if (DRW_state_is_select()) {
|
||||
if (DRW_state_is_select() || DRW_state_is_depth()) {
|
||||
/* Edit modes have their own selection code. */
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue