diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-26 16:09:17 +0400 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-26 16:09:17 +0400 |
commit | 8253d3e0411276ca09995fcbd826abd2c0c8b930 (patch) | |
tree | 2d6ad13d242ee41e0ed3f1adcaf9bd12ae63b404 /source/gameengine/GameLogic/SCA_PythonController.cpp | |
parent | 3dd18c5c34390316ac95b972aaa989455cf8ead6 (diff) |
Python fixes:
Reenabled the setScript/getScript methods for python controller bricks.
Set the ray source point to MouseFocusSensor.getRaySource works.
Added: Python -> MT_Quaternion
MT_Matrix4x4, MT_Matrix3x3, MT_Vector3, MT_Point3 -> Python
Correct transform of frustum bound sphere centre point to world coordinates
Diffstat (limited to 'source/gameengine/GameLogic/SCA_PythonController.cpp')
-rw-r--r-- | source/gameengine/GameLogic/SCA_PythonController.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/gameengine/GameLogic/SCA_PythonController.cpp b/source/gameengine/GameLogic/SCA_PythonController.cpp index e21916e060e..c9ecb412035 100644 --- a/source/gameengine/GameLogic/SCA_PythonController.cpp +++ b/source/gameengine/GameLogic/SCA_PythonController.cpp @@ -183,8 +183,9 @@ PyMethodDef SCA_PythonController::Methods[] = { {"getSensors", (PyCFunction) SCA_PythonController::sPyGetSensors, METH_VARARGS, SCA_PythonController::GetSensors_doc}, {"getSensor", (PyCFunction) SCA_PythonController::sPyGetSensor, - METH_VARARGS, SCA_PythonController::GetSensor_doc} - , + METH_VARARGS, SCA_PythonController::GetSensor_doc}, + {"getScript", (PyCFunction) SCA_PythonController::sPyGetScript, METH_VARARGS}, + {"setScript", (PyCFunction) SCA_PythonController::sPySetScript, METH_VARARGS}, {NULL,NULL} //Sentinel }; |