Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-07-09 18:58:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-09 19:14:41 +0300
commit881cc17ffa71c0717e1bf3c23187e052231f8b4a (patch)
tree49817c37495de6a26349948092574617d86c69fc
parent113b053d5b4681022679405c4587cf50ba112418 (diff)
UI: hide status bar items when
-rw-r--r--source/blender/editors/transform/transform.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index c350283597e..6745f64cb88 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -832,6 +832,12 @@ static bool transform_modal_item_poll(const wmOperator *op, int value)
if (t->spacetype != SPACE_VIEW3D) {
return false;
}
+ else if (t->tsnap.mode & (SCE_SNAP_MODE_INCREMENT | SCE_SNAP_MODE_GRID)) {
+ return false;
+ }
+ else if (!validSnap(t)) {
+ return false;
+ }
break;
}
case TFM_MODAL_AXIS_Z:
@@ -850,6 +856,13 @@ static bool transform_modal_item_poll(const wmOperator *op, int value)
}
break;
}
+ case TFM_MODAL_CONS_OFF:
+ {
+ if ((t->con.mode & CON_APPLY) == 0) {
+ return false;
+ }
+ break;
+ }
case TFM_MODAL_EDGESLIDE_UP:
case TFM_MODAL_EDGESLIDE_DOWN:
{
@@ -873,7 +886,6 @@ static bool transform_modal_item_poll(const wmOperator *op, int value)
}
break;
}
-
}
return true;
}
@@ -1613,6 +1625,12 @@ int transformEvent(TransInfo *t, const wmEvent *event)
handled = true;
}
+ if (t->redraw &&
+ !ELEM(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE))
+ {
+ WM_window_status_area_tag_redraw(CTX_wm_window(t->context));
+ }
+
if (handled || t->redraw) {
return 0;
}