UI: Status Bar Message for CLIP_OT_add_marker_at_click
Add icons to display of the status bar text for “Add Marker at Click”. Pull Request: https://projects.blender.org/blender/blender/pulls/133394
This commit is contained in:
committed by
Harley Acheson
parent
748c91ce27
commit
8aafcc7f64
@@ -25,6 +25,7 @@
|
||||
#include "DEG_depsgraph.hh"
|
||||
|
||||
#include "UI_interface_icons.hh"
|
||||
#include "UI_resources.hh"
|
||||
|
||||
#include "WM_api.hh"
|
||||
#include "WM_types.hh"
|
||||
@@ -147,7 +148,9 @@ void CLIP_OT_add_marker(wmOperatorType *ot)
|
||||
|
||||
static int add_marker_at_click_invoke(bContext *C, wmOperator *op, const wmEvent * /*event*/)
|
||||
{
|
||||
ED_workspace_status_text(C, IFACE_("Use LMB click to define location where place the marker"));
|
||||
WorkspaceStatus status(C);
|
||||
status.item(IFACE_("Cancel"), ICON_EVENT_ESC);
|
||||
status.item(IFACE_("Place Marker"), ICON_MOUSE_LMB);
|
||||
|
||||
/* Add modal handler for ESC. */
|
||||
WM_event_add_modal_handler(C, op);
|
||||
|
||||
Reference in New Issue
Block a user