fix for own error in r50482.
authorCampbell Barton <ideasman42@gmail.com>
Mon, 10 Sep 2012 01:22:04 +0000 (01:22 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 10 Sep 2012 01:22:04 +0000 (01:22 +0000)
source/blender/editors/interface/interface_handlers.c

index 0548ed55290999a0ed0c5f2ca6dc4ebd27dc7c92..989383215cd9dd79dd5a3b1ab26d9889e84b1b73 100644 (file)
@@ -5856,6 +5856,9 @@ static int ui_handle_button_event(bContext *C, wmEvent *event, uiBut *but)
                                        }
                                }
 
+                               if (but->type != COL) {  /* exception */
+                                       data->cancel = 1;
+                               }
                                button_activate_state(C, but, BUTTON_STATE_EXIT);
                                break;
                        }