missing check for NULL poll for wmPaintCursorDraw which is allowed.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 27 Jan 2010 09:36:28 +0000 (09:36 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 27 Jan 2010 09:36:28 +0000 (09:36 +0000)
would crash when in transform and moving the mouse over another window.

source/blender/windowmanager/intern/wm_event_system.c

index 309840cf935ccd0e613dc825ffbc72771ae701eb..e770ced45e3aa995e864a59bb6338b95d1531355 100644 (file)
@@ -1346,7 +1346,7 @@ static void wm_paintcursor_tag(bContext *C, wmPaintCursor *pc, ARegion *ar)
 {
        if(ar) {
                for(; pc; pc= pc->next) {
-                       if(pc->poll(C)) {
+                       if(pc->poll == NULL || pc->poll(C)) {
                                wmWindow *win= CTX_wm_window(C);
                                win->screen->do_draw_paintcursor= 1;