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
diff options
context:
space:
mode:
Diffstat (limited to 'source/gameengine/Converter/KX_ConvertControllers.cpp')
-rw-r--r--source/gameengine/Converter/KX_ConvertControllers.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/gameengine/Converter/KX_ConvertControllers.cpp b/source/gameengine/Converter/KX_ConvertControllers.cpp
index f55d81adb80..a00a90428da 100644
--- a/source/gameengine/Converter/KX_ConvertControllers.cpp
+++ b/source/gameengine/Converter/KX_ConvertControllers.cpp
@@ -161,7 +161,7 @@ void BL_ConvertControllers(
// When libloading, this is delayed to KX_Scene::MergeScene_LogicBrick to avoid GIL issues
if (!libloading)
pyctrl->SetNamespace(converter->GetPyNamespace());
-
+
if (pycont->mode==SCA_PythonController::SCA_PYEXEC_SCRIPT) {
if (pycont->text)
{
@@ -174,12 +174,12 @@ void BL_ConvertControllers(
pyctrl->SetScriptName(pycont->text->id.name+2);
MEM_freeN(buf);
}
-
+
}
}
else {
/* let the controller print any warnings here when importing */
- pyctrl->SetScriptText(STR_String(pycont->module));
+ pyctrl->SetScriptText(STR_String(pycont->module));
pyctrl->SetScriptName(pycont->module); /* will be something like module.func so using it as the name is OK */
if (pycont->flag & CONT_PY_DEBUG) {
@@ -193,7 +193,7 @@ void BL_ConvertControllers(
}
default:
{
-
+
}
}
@@ -216,7 +216,7 @@ void BL_ConvertControllers(
gamecontroller->SetName(bcontr->name);
gamecontroller->SetLogicManager(logicmgr);
gameobj->AddController(gamecontroller);
-
+
converter->RegisterGameController(gamecontroller, bcontr);
#ifdef WITH_PYTHON
@@ -231,7 +231,7 @@ void BL_ConvertControllers(
/* We cant do this because importing runs the script which could end up accessing
* internal BGE functions, this is unstable while we're converting the scene.
* This is a pity because its useful to see errors at startup but cant help it */
-
+
// pyctrl->Import();
}
}
@@ -243,7 +243,7 @@ void BL_ConvertControllers(
}
else if (gamecontroller)
gamecontroller->Release();
-
+
bcontr = bcontr->next;
}