diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-10-01 09:19:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-10-01 09:19:12 +0300 |
commit | b559fb178e5063c3efd6be6b018ab50c9fd2e0d9 (patch) | |
tree | 5b31000c6f7296c8dd39abb575336d4fe96996b1 | |
parent | 4485dc483cf0c0cea7f9c39e327ce1d036906fdf (diff) |
Gizmo: hide 2D gizmos while transforming
Hide gizmos in the sequencer & UV editor while transforming.
-rw-r--r-- | source/blender/editors/transform/transform_gizmo_2d.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_gizmo_2d.c b/source/blender/editors/transform/transform_gizmo_2d.c index 0d66db0d7e1..4f6556cd2a2 100644 --- a/source/blender/editors/transform/transform_gizmo_2d.c +++ b/source/blender/editors/transform/transform_gizmo_2d.c @@ -32,6 +32,7 @@ #include "DNA_view3d_types.h" #include "BKE_context.h" +#include "BKE_global.h" #include "BKE_layer.h" #include "RNA_access.h" @@ -70,6 +71,10 @@ static bool gizmo2d_generic_poll(const bContext *C, wmGizmoGroupType *gzgt) return false; } + if (G.moving) { + return false; + } + ScrArea *area = CTX_wm_area(C); switch (area->spacetype) { case SPACE_IMAGE: { |