Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_ops.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| /* modal callback while selecting area (space) that will be removed */ | /* modal callback while selecting area (space) that will be removed */ | ||||
| static int area_join_modal(bContext *C, wmOperator *op, const wmEvent *event) | static int area_join_modal(bContext *C, wmOperator *op, const wmEvent *event) | ||||
| { | { | ||||
| bScreen *sc = CTX_wm_screen(C); | bScreen *sc = CTX_wm_screen(C); | ||||
| wmWindow *win = CTX_wm_window(C); | wmWindow *win = CTX_wm_window(C); | ||||
| sAreaJoinData *jd; | sAreaJoinData *jd; | ||||
| if (op->customdata == NULL) { | if (op->customdata == NULL) { | ||||
| area_join_init(C, op, NULL, NULL); | if (!area_join_init(C, op, NULL, NULL)) { | ||||
| return OPERATOR_CANCELLED; | |||||
| } | |||||
| } | } | ||||
| jd = (sAreaJoinData *)op->customdata; | jd = (sAreaJoinData *)op->customdata; | ||||
| /* execute the events */ | /* execute the events */ | ||||
| switch (event->type) { | switch (event->type) { | ||||
| case MOUSEMOVE: { | case MOUSEMOVE: { | ||||
| ScrArea *sa = BKE_screen_find_area_xy(sc, SPACE_TYPE_ANY, event->x, event->y); | ScrArea *sa = BKE_screen_find_area_xy(sc, SPACE_TYPE_ANY, event->x, event->y); | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||