[Bf-blender-cvs] [1fa63b3] master: Fix T37992: german NUMPAD-COMMA is not tranlated to decimal dot (for modal numinput).

Bastien Montagne noreply at git.blender.org
Tue Dec 31 13:41:55 CET 2013


Commit: 1fa63b317a032fc348dab1ca69a8358f0fb3ae02
Author: Bastien Montagne
Date:   Tue Dec 31 13:39:43 2013 +0100
https://developer.blender.org/rB1fa63b317a032fc348dab1ca69a8358f0fb3ae02

Fix T37992: german NUMPAD-COMMA is not tranlated to decimal dot (for modal  numinput).

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

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

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

diff --git a/source/blender/editors/util/numinput.c b/source/blender/editors/util/numinput.c
index 8910511..941152f 100644
--- a/source/blender/editors/util/numinput.c
+++ b/source/blender/editors/util/numinput.c
@@ -294,6 +294,11 @@ bool handleNumInput(bContext *C, NumInput *n, const wmEvent *event)
 				n->str_cur = 0;
 			}
 			return true;
+		case PADPERIOD:
+			/* Force numdot, some OSs/countries generate a comma char in this case, sic...  (T37992) */
+			ascii[0] = '.';
+			utf8_buf = ascii;
+			break;
 		case CKEY:
 			if (event->ctrl) {
 				/* Copy current str to the copypaste buffer. */




More information about the Bf-blender-cvs mailing list