UI: Mesh Shear Status Display
While using Mesh Shear, show only changing values in the area header and only keymap entries on the Status Bar Pull Request: https://projects.blender.org/blender/blender/pulls/122341
This commit is contained in:
committed by
Harley Acheson
parent
3e73b9caa5
commit
02798f8438
@@ -310,10 +310,18 @@ static void apply_shear(TransInfo *t)
|
||||
}
|
||||
else {
|
||||
/* Default header print. */
|
||||
SNPRINTF(str, IFACE_("Shear: %.3f %s (Press X or Y to set shear axis)"), value, t->proptext);
|
||||
SNPRINTF(str, IFACE_("Shear: %.3f %s"), value, t->proptext);
|
||||
}
|
||||
|
||||
ED_area_status_text(t->area, str);
|
||||
|
||||
WorkspaceStatus status(t->context);
|
||||
status.item(IFACE_("Confirm"), ICON_MOUSE_LMB);
|
||||
status.item(IFACE_("Cancel"), ICON_MOUSE_RMB);
|
||||
status.item_bool({}, t->orient_axis_ortho == (t->orient_axis + 1) % 3, ICON_EVENT_X);
|
||||
status.item_bool({}, t->orient_axis_ortho == (t->orient_axis + 2) % 3, ICON_EVENT_Y);
|
||||
status.item(IFACE_("Shear Axis"), ICON_NONE);
|
||||
status.item(IFACE_("Swap Axes"), ICON_MOUSE_MMB);
|
||||
}
|
||||
|
||||
static void initShear(TransInfo *t, wmOperator * /*op*/)
|
||||
|
||||
Reference in New Issue
Block a user