[Bf-blender-cvs] [bb513b173e9] blender2.8: UI: don't highlight number button while dragging

Campbell Barton noreply at git.blender.org
Fri Apr 27 22:26:25 CEST 2018


Commit: bb513b173e9bb6f1c0db6af66a548ef4883fa0f3
Author: Campbell Barton
Date:   Fri Apr 27 22:25:54 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBbb513b173e9bb6f1c0db6af66a548ef4883fa0f3

UI: don't highlight number button while dragging

===================================================================

M	source/blender/editors/interface/interface_handlers.c

===================================================================

diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index de032f03f57..2c477b92885 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -4174,7 +4174,7 @@ static void ui_numedit_set_active(uiBut *but)
 	but->drawflag &= ~(UI_BUT_ACTIVE_LEFT | UI_BUT_ACTIVE_RIGHT);
 
 	uiHandleButtonData *data = but->active;
-	if (!data) {
+	if (!data || (data->state == BUTTON_STATE_NUM_EDITING)) {
 		return;
 	}



More information about the Bf-blender-cvs mailing list