[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16414] trunk/blender/source/gameengine/ Converter/KX_ConvertSensors.cpp: BGE bug #17574 fixed: GE Text input doesn' t register in 2.47.
Benoit Bolsee
benoit.bolsee at online.be
Sun Sep 7 21:58:37 CEST 2008
Revision: 16414
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16414
Author: ben2610
Date: 2008-09-07 21:58:37 +0200 (Sun, 07 Sep 2008)
Log Message:
-----------
BGE bug #17574 fixed: GE Text input doesn't register in 2.47. Force registration of keyboard sensor with no link as this is typically the setting for key logging.
Modified Paths:
--------------
trunk/blender/source/gameengine/Converter/KX_ConvertSensors.cpp
Modified: trunk/blender/source/gameengine/Converter/KX_ConvertSensors.cpp
===================================================================
--- trunk/blender/source/gameengine/Converter/KX_ConvertSensors.cpp 2008-09-07 19:55:43 UTC (rev 16413)
+++ trunk/blender/source/gameengine/Converter/KX_ConvertSensors.cpp 2008-09-07 19:58:37 UTC (rev 16414)
@@ -781,6 +781,13 @@
"logic may be incorrect\n", sens->name, i+1, sens->totlinks, blenderobject->id.name+2);
}
}
+ // special case: Keyboard sensor with no link
+ // this combination is usually used for key logging.
+ if (sens->type == SENS_KEYBOARD && sens->totlinks == 0) {
+ // Force the registration so that the sensor runs
+ gamesensor->IncLink();
+ }
+
// done with gamesensor
gamesensor->Release();
More information about the Bf-blender-cvs
mailing list