2.5
authorTon Roosendaal <ton@blender.org>
Sun, 21 Dec 2008 17:44:27 +0000 (17:44 +0000)
committerTon Roosendaal <ton@blender.org>
Sun, 21 Dec 2008 17:44:27 +0000 (17:44 +0000)
Enabled cool hidden feature from Brecht: "interactive" mode for buttons,
which executes button handling on each change.
Try sliding the current frame, or even: type in values there! Cooool! :)

source/blender/editors/interface/interface_handlers.c

index c11e81554bf971de5aec53a03f16519053417d9d..9d3d489ef446a43b9df5aeb7477ace77db1e23f7 100644 (file)
@@ -2865,7 +2865,7 @@ static void button_activate_init(bContext *C, ARegion *ar, uiBut *but, uiButtonA
        data= MEM_callocN(sizeof(uiHandleButtonData), "uiHandleButtonData");
        data->window= CTX_wm_window(C);
        data->region= ar;
-       data->interactive= 0;
+       data->interactive= 1;
        data->state = BUTTON_STATE_INIT;
 
        /* activate button */