Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_ops.c
| Show First 20 Lines • Show All 1,753 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Drop Color Operator | /** \name Drop Color Operator | ||||
| * \{ */ | * \{ */ | ||||
| bool UI_drop_color_poll(struct bContext *C, | bool UI_drop_color_poll(struct bContext *C, wmDrag *drag, const wmEvent *UNUSED(event)) | ||||
| wmDrag *drag, | |||||
| const wmEvent *UNUSED(event), | |||||
| const char **UNUSED(r_tooltip)) | |||||
| { | { | ||||
| /* should only return true for regions that include buttons, for now | /* should only return true for regions that include buttons, for now | ||||
| * return true always */ | * return true always */ | ||||
| if (drag->type == WM_DRAG_COLOR) { | if (drag->type == WM_DRAG_COLOR) { | ||||
| SpaceImage *sima = CTX_wm_space_image(C); | SpaceImage *sima = CTX_wm_space_image(C); | ||||
| ARegion *region = CTX_wm_region(C); | ARegion *region = CTX_wm_region(C); | ||||
| if (UI_but_active_drop_color(C)) { | if (UI_but_active_drop_color(C)) { | ||||
| ▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines | |||||