[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39767] trunk/blender/source/gameengine/ Converter/KX_ConvertControllers.cpp: bge bugfix: [#28362] Controllers names appear incorrectly with a python query

Dalai Felinto dfelinto at gmail.com
Mon Aug 29 05:20:18 CEST 2011


Revision: 39767
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39767
Author:   dfelinto
Date:     2011-08-29 03:20:15 +0000 (Mon, 29 Aug 2011)
Log Message:
-----------
bge bugfix: [#28362] Controllers names appear incorrectly with a python query
the uniquename was never fully implemented for sensors and actuators, only for controllers.
at some point we either get rid of all of them, or bring them all on.

For now removing the "unique name" of controllers

Modified Paths:
--------------
    trunk/blender/source/gameengine/Converter/KX_ConvertControllers.cpp

Modified: trunk/blender/source/gameengine/Converter/KX_ConvertControllers.cpp
===================================================================
--- trunk/blender/source/gameengine/Converter/KX_ConvertControllers.cpp	2011-08-29 01:08:34 UTC (rev 39766)
+++ trunk/blender/source/gameengine/Converter/KX_ConvertControllers.cpp	2011-08-29 03:20:15 UTC (rev 39767)
@@ -210,7 +210,11 @@
 			CIntValue* uniqueval = new CIntValue(uniqueint);
 			uniquename += uniqueval->GetText();
 			uniqueval->Release();
-			gamecontroller->SetName(uniquename);
+			//unique name was never implemented for sensors and actuators, only for controllers
+			//and it's producing difference in the keys for the lists: obj.controllers/sensors/actuators
+			//at some point it should either be implemented globally (and saved as a separate var) or removed.
+			//gamecontroller->SetName(uniquename);
+			gamecontroller->SetName(bcontr->name);
 			gameobj->AddController(gamecontroller);
 			
 			converter->RegisterGameController(gamecontroller, bcontr);




More information about the Bf-blender-cvs mailing list