some minor webplugin changes, new loading .blend, upgraded version to 2.42, enabled PhysicsConstraints module within sandbox.
This commit is contained in:
Binary file not shown.
@@ -643,18 +643,23 @@ bool GPG_Application::startEngine(void)
|
|||||||
m_audiodevice,
|
m_audiodevice,
|
||||||
startscenename);
|
startscenename);
|
||||||
|
|
||||||
|
|
||||||
// some python things
|
// some python things
|
||||||
PyObject* m_dictionaryobject = initGamePlayerPythonScripting("Ketsji", psl_Lowest);
|
PyObject* dictionaryobject = initGamePythonScripting("Ketsji", psl_Lowest);
|
||||||
m_ketsjiengine->SetPythonDictionary(m_dictionaryobject);
|
m_ketsjiengine->SetPythonDictionary(dictionaryobject);
|
||||||
initRasterizer(m_rasterizer, m_canvas);
|
initRasterizer(m_rasterizer, m_canvas);
|
||||||
initGameLogic(startscene);
|
PyObject *gameLogic = initGameLogic(startscene);
|
||||||
initGameKeys();
|
initGameKeys();
|
||||||
initPythonConstraintBinding();
|
initPythonConstraintBinding();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
m_sceneconverter->ConvertScene(
|
m_sceneconverter->ConvertScene(
|
||||||
startscenename,
|
startscenename,
|
||||||
startscene,
|
startscene,
|
||||||
m_dictionaryobject,
|
dictionaryobject,
|
||||||
m_keyboard,
|
m_keyboard,
|
||||||
m_rendertools,
|
m_rendertools,
|
||||||
m_canvas);
|
m_canvas);
|
||||||
|
@@ -830,7 +830,7 @@ PyObject *KXpy_import(PyObject *self, PyObject *args)
|
|||||||
|
|
||||||
/* quick hack for GamePython modules
|
/* quick hack for GamePython modules
|
||||||
TODO: register builtin modules properly by ExtendInittab */
|
TODO: register builtin modules properly by ExtendInittab */
|
||||||
if (!strcmp(name, "GameLogic") || !strcmp(name, "GameKeys") ||
|
if (!strcmp(name, "GameLogic") || !strcmp(name, "GameKeys") || !strcmp(name, "PhysicsConstraints") ||
|
||||||
!strcmp(name, "Rasterizer")) {
|
!strcmp(name, "Rasterizer")) {
|
||||||
return PyImport_ImportModuleEx(name, globals, locals, fromlist);
|
return PyImport_ImportModuleEx(name, globals, locals, fromlist);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user