Fix crash transforming image cursor outside of edit-mode

This commit is contained in:
Campbell Barton 2019-03-07 13:48:29 +11:00
parent 97b1739cf1
commit e866fb7b77
1 changed files with 3 additions and 0 deletions

View File

@ -624,6 +624,9 @@ static void viewRedrawForce(const bContext *C, TransInfo *t)
wmWindow *window = CTX_wm_window(C);
WM_paint_cursor_tag_redraw(window, t->ar);
}
else if (t->flag & T_CURSOR) {
ED_area_tag_redraw(t->sa);
}
else {
// XXX how to deal with lock?
SpaceImage *sima = (SpaceImage *)t->sa->spacedata.first;