Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2011-08-29 07:20:15 +0400
committerDalai Felinto <dfelinto@gmail.com>2011-08-29 07:20:15 +0400
commitea07e367c5e803a40ff4f0f50d28f88d9104434c (patch)
tree651a70d98682f7bea71b9ff63aecc34aa1434784 /source
parentc1eb0c3783a8a58b8b8f0e380cd931ef02cb69da (diff)
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
Diffstat (limited to 'source')
-rw-r--r--source/gameengine/Converter/KX_ConvertControllers.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/gameengine/Converter/KX_ConvertControllers.cpp b/source/gameengine/Converter/KX_ConvertControllers.cpp
index 98afc3a690a..fafaaf5cef6 100644
--- a/source/gameengine/Converter/KX_ConvertControllers.cpp
+++ b/source/gameengine/Converter/KX_ConvertControllers.cpp
@@ -210,7 +210,11 @@ void BL_ConvertControllers(
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);