diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-11-02 11:35:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-11-02 11:35:17 +0300 |
commit | 69a7734b75c3044b760061a1141ba6dc95e419a6 (patch) | |
tree | 6b2e4fcd03176e3e922e3c0af0519d98c70dc895 /source/blender/draw/intern | |
parent | 2fb43f08e74cf1b209ba3f69d9e5e657beccc37f (diff) |
UI: always show the cursor while transforming the cursor
Diffstat (limited to 'source/blender/draw/intern')
-rw-r--r-- | source/blender/draw/intern/draw_view.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_view.c b/source/blender/draw/intern/draw_view.c index bbd345271b1..de43d2aba0f 100644 --- a/source/blender/draw/intern/draw_view.c +++ b/source/blender/draw/intern/draw_view.c @@ -40,6 +40,7 @@ #include "WM_types.h" +#include "BKE_global.h" #include "BKE_object.h" #include "BKE_paint.h" @@ -63,6 +64,10 @@ void DRW_draw_region_info(void) static bool is_cursor_visible(const DRWContextState *draw_ctx, Scene *scene, ViewLayer *view_layer) { + if (G.moving & G_TRANSFORM_CURSOR) { + return true; + } + View3D *v3d = draw_ctx->v3d; if ((v3d->flag2 & V3D_HIDE_OVERLAYS) || (v3d->overlay.flag & V3D_OVERLAY_HIDE_CURSOR)) { return false; |