From 9ab67fd31bc5b84034deddd6487343d45c2ba1d7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 27 Oct 2017 15:54:17 +1100 Subject: Hide transform widget when tool widget is used --- source/blender/editors/transform/transform_manipulator.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'source/blender') diff --git a/source/blender/editors/transform/transform_manipulator.c b/source/blender/editors/transform/transform_manipulator.c index 1fa62556bd5..d1f17ac7cb2 100644 --- a/source/blender/editors/transform/transform_manipulator.c +++ b/source/blender/editors/transform/transform_manipulator.c @@ -1441,8 +1441,16 @@ static bool WIDGETGROUP_manipulator_poll(const struct bContext *C, struct wmMani const ScrArea *sa = CTX_wm_area(C); const View3D *v3d = sa->spacedata.first; - return (((v3d->twflag & V3D_MANIPULATOR_DRAW) != 0) && - ((v3d->twtype & (V3D_MANIP_TRANSLATE | V3D_MANIP_ROTATE | V3D_MANIP_SCALE)) != 0)); + if (((v3d->twflag & V3D_MANIPULATOR_DRAW) != 0) && + ((v3d->twtype & (V3D_MANIP_TRANSLATE | V3D_MANIP_ROTATE | V3D_MANIP_SCALE)) != 0)) + { + /* Don't show when tools have a manipulator. */ + WorkSpace *workspace = CTX_wm_workspace(C); + if (workspace->tool.manipulator_group[0] == '\0') { + return true; + } + } + return false; } void TRANSFORM_WGT_manipulator(wmManipulatorGroupType *wgt) -- cgit v1.2.3