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:
Clément Foucault
2020-04-16 19:58:07 +02:00
parent 95a018aa32
commit 96825403a6

View File

@@ -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;
}