Fix [#22413] drag & drop images don't work untile you move the object
authorMatt Ebb <matt@mke3.net>
Mon, 7 Jun 2010 07:47:27 +0000 (07:47 +0000)
committerMatt Ebb <matt@mke3.net>
Mon, 7 Jun 2010 07:47:27 +0000 (07:47 +0000)
source/blender/windowmanager/intern/wm_event_system.c

index 95c121e7a1fb1bfb486bcc8fef58475b218f075d..dc81dc394886d9451073d4be3c2afeb6f4782558 100644 (file)
@@ -1658,7 +1658,7 @@ void wm_event_do_handlers(bContext *C)
                                                                        
                                                                        /* does polls for drop regions and checks uibuts */
                                                                        /* need to be here to make sure region context is true */
-                                                                       if(event->type==MOUSEMOVE) {
+                                                                       if(ELEM(event->type, MOUSEMOVE, EVT_DROP)) {
                                                                                wm_region_mouse_co(C, event);
                                                                                wm_drags_check_ops(C, event);
                                                                        }