Gizmo: hide 2D gizmos while transforming

Hide gizmos in the sequencer & UV editor while transforming.
This commit is contained in:
Campbell Barton 2021-10-01 16:19:12 +10:00
parent 4485dc483c
commit b559fb178e
1 changed files with 5 additions and 0 deletions

View File

@ -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: {