Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/gizmo/intern/wm_gizmo_target_props.c
| Show First 20 Lines • Show All 312 Lines • ▼ Show 20 Lines | |||||
| void WM_gizmo_do_msg_notify_tag_refresh(bContext *UNUSED(C), | void WM_gizmo_do_msg_notify_tag_refresh(bContext *UNUSED(C), | ||||
| wmMsgSubscribeKey *UNUSED(msg_key), | wmMsgSubscribeKey *UNUSED(msg_key), | ||||
| wmMsgSubscribeValue *msg_val) | wmMsgSubscribeValue *msg_val) | ||||
| { | { | ||||
| ARegion *ar = msg_val->owner; | ARegion *ar = msg_val->owner; | ||||
| wmGizmoMap *gzmap = msg_val->user_data; | wmGizmoMap *gzmap = msg_val->user_data; | ||||
| ED_region_tag_redraw(ar); | ED_region_tag_redraw(ar); /* Could possibly avoid full redraw and only tag for editor overlays | ||||
| redraw in some cases. */ | |||||
| WM_gizmomap_tag_refresh(gzmap); | WM_gizmomap_tag_refresh(gzmap); | ||||
| } | } | ||||
| /** | /** | ||||
| * Runs on the "prepare draw" pass, | * Runs on the "prepare draw" pass, | ||||
| * drawing the region clears. | * drawing the region clears. | ||||
| */ | */ | ||||
| void WM_gizmo_target_property_subscribe_all(wmGizmo *gz, struct wmMsgBus *mbus, ARegion *ar) | void WM_gizmo_target_property_subscribe_all(wmGizmo *gz, struct wmMsgBus *mbus, ARegion *ar) | ||||
| ▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines | |||||