[Bf-blender-cvs] [c10ece49bae] blender2.8: Fix for recent numeric input checks

Campbell Barton noreply at git.blender.org
Tue Jul 10 17:11:10 CEST 2018


Commit: c10ece49baea0458f44668d8ad92764c2c361c90
Author: Campbell Barton
Date:   Tue Jul 10 17:10:38 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBc10ece49baea0458f44668d8ad92764c2c361c90

Fix for recent numeric input checks

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

M	source/blender/editors/util/numinput.c

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

diff --git a/source/blender/editors/util/numinput.c b/source/blender/editors/util/numinput.c
index f67ea1d5989..4de61395314 100644
--- a/source/blender/editors/util/numinput.c
+++ b/source/blender/editors/util/numinput.c
@@ -277,7 +277,7 @@ bool handleNumInput(bContext *C, NumInput *n, const wmEvent *event)
 	int cur;
 
 #ifndef USE_FAKE_EDIT
-	if ((event->ctrl == 0) && (event->alt == 0) &&
+	if ((event->ctrl == 0) && (event->alt == 0) && (event->ascii != '\0') &&
 	    strchr("01234567890@%^&*-+/{}()[]<>.|", event->ascii))
 	{
 		if (!(n->flag & NUM_EDIT_FULL)) {



More information about the Bf-blender-cvs mailing list