diff options
author | Aaron Carlisle <carlisle.b3d@gmail.com> | 2021-08-09 18:52:51 +0300 |
---|---|---|
committer | Aaron Carlisle <carlisle.b3d@gmail.com> | 2021-08-09 18:53:28 +0300 |
commit | fddd5eb6927cb348a6a0e2098908e641ee7f83a4 (patch) | |
tree | 7fc6de898852a84fc675b3a704eb559876df8e56 /source/blender | |
parent | ff594715b8347e8d5d6a9f60e48ec7b170661962 (diff) |
UI: Image Editor: Fix missing 2D cursor in mask edit mode
The 2D cursor should be visible in both mask and uv edit modes.
This was likely and oversight when splitting the image editor
into the UV and Image editors
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/intern/draw_view.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_view.c b/source/blender/draw/intern/draw_view.c index ae2c66881ff..90bb3762473 100644 --- a/source/blender/draw/intern/draw_view.c +++ b/source/blender/draw/intern/draw_view.c @@ -211,8 +211,17 @@ static bool is_cursor_visible_2d(const DRWContextState *draw_ctx) return false; } SpaceImage *sima = (SpaceImage *)space_data; - if (sima->mode != SI_MODE_UV) { - return false; + switch (sima->mode) { + case SI_MODE_VIEW: + return false; + break; + case SI_MODE_PAINT: + return false; + break; + case SI_MODE_MASK: + break; + case SI_MODE_UV: + break; } return (sima->overlay.flag & SI_OVERLAY_SHOW_OVERLAYS) != 0; } |