Correct last commit, for-loop included NULL check

This commit is contained in:
Campbell Barton 2017-07-31 11:39:17 +10:00
parent ac2b1663ef
commit 538b191a03

@ -856,8 +856,10 @@ static void region_cursor_set(wmWindow *win, int swinid, int swin_changed)
for (ARegion *ar = sa->regionbase.first; ar; ar = ar->next) {
if (ar->swinid == swinid) {
if (swin_changed || (ar->type && ar->type->event_cursor)) {
if (WM_manipulatormap_cursor_set(ar->manipulator_map, win)) {
return;
if (ar->manipulator_map != NULL) {
if (WM_manipulatormap_cursor_set(ar->manipulator_map, win)) {
return;
}
}
ED_region_cursor_set(win, sa, ar);
}