Blender Git Loki

Git Commits -> Revision c1e1091

Revision c1e1091 by Campbell Barton (master)
May 6, 2009, 09:12 (GMT)
moved py controller functions from SCA_PythonController to SCA_IController - the base controller class so python can get the sensors & actuators from any controller (not just SCA_PythonController types)

also deprecated getActuators() and getSensors() for 'sensors' and 'actuators' attributes.

an example of getting every sensor connected to an object.
all_sensors = [s for c in ob.controllers for s in c.sensors]

Commit Details:

Full Hash: c1e1091f027e2d1b8a84ff5595e9a85b092f1b88
SVN Revision: 20083
Parent Commit: 25b415f
Lines Changed: +266, -164

10 Modified Paths:

/source/blender/python/api2_2x/doc/Mathutils.py (+4, -4) (Diff)
/source/gameengine/GameLogic/SCA_IController.cpp (+174, -0) (Diff)
/source/gameengine/GameLogic/SCA_IController.h (+16, -1) (Diff)
/source/gameengine/GameLogic/SCA_PythonController.cpp (+7, -108) (Diff)
/source/gameengine/GameLogic/SCA_PythonController.h (+3, -6) (Diff)
/source/gameengine/Ketsji/KX_PythonInitTypes.cpp (+2, -3) (Diff)
/source/gameengine/PyDoc/GameLogic.py (+4, -2) (Diff)
/source/gameengine/PyDoc/KX_SceneActuator.py (+1, -1) (Diff)
/source/gameengine/PyDoc/SCA_IController.py (+52, -0) (Diff)
/source/gameengine/PyDoc/SCA_PythonController.py (+3, -39) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021