Blender Git Loki

Git Commits -> Revision a088b94

Revision a088b94 by Inês Almeida (master)
February 9, 2015, 20:56 (GMT)
Recreating bge python modules instead of using existing

All of the initXPythonBinding functions are changed to always creating the module instead of importing if previously existing.
I can instead only remove the module return when the import is ok, so that it always inits. But then, I don't see the point in importing.

I make sure that these functions are called only once per run, inside initBGE.
This was not the case with GameTypes. I moved initPyTypes inside of initGameTypesPythonBinding due to that.

I reorganized initGamePlayerPythonScripting and initGamePythonScripting so that they run things in the same order.
initGamePlayerPythonScripting imports mathutils and aud, the other only aud. Shouldn't it be the same for both?

Reviewers: campbellbarton

Subscribers: sybren

Projects: #game_engine, #game_python

Differential Revision: https://developer.blender.org/D1070

Commit Details:

Full Hash: a088b9488d1be7388ddff34c0708616643900940
Parent Commit: 31e26bb
Lines Changed: +43, -128

5 Modified Paths:

/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp (+2, -13) (Diff)
/source/gameengine/Ketsji/KX_PythonInit.cpp (+14, -51) (Diff)
/source/gameengine/Ketsji/KX_PythonInitTypes.cpp (+24, -49) (Diff)
/source/gameengine/Ketsji/KX_PythonInitTypes.h (+0, -1) (Diff)
/source/gameengine/VideoTexture/blendVideoTex.cpp (+3, -14) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021