Correct last commit, for-loop included NULL check
This commit is contained in:
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user