UI: hide status bar constraints when not used

This commit is contained in:
Campbell Barton 2018-07-09 18:25:25 +02:00
parent 881cc17ffa
commit 07e368cb5f

@ -840,20 +840,21 @@ static bool transform_modal_item_poll(const wmOperator *op, int value)
}
break;
}
case TFM_MODAL_AXIS_X:
case TFM_MODAL_AXIS_Y:
case TFM_MODAL_AXIS_Z:
{
if (t->flag & T_2D_EDIT) {
return false;
}
break;
}
case TFM_MODAL_PLANE_X:
case TFM_MODAL_PLANE_Y:
case TFM_MODAL_PLANE_Z:
{
if (t->flag & T_2D_EDIT) {
if (t->flag & T_NO_CONSTRAINT) {
return false;
}
if (!ELEM(value, TFM_MODAL_AXIS_X, TFM_MODAL_AXIS_Y)) {
if (t->flag & T_2D_EDIT) {
return false;
}
}
break;
}
case TFM_MODAL_CONS_OFF: