Blender Git Commit Log

Git Commits -> Revision 9037222

Revision 9037222 by Campbell Barton (master)
June 3, 2009, 04:12 (GMT)
BGE PyAPI fixes
- CValue warning ShowDeprecationWarning("val = ob.attr", "val = ob['attr']"); had false positives because of python using getattr() internally. Only show the wanring now when a CValue is found.
- Py functions that accepted a vector and a GameObject were slowed down by PySequence_Check() first called on the GameObject, though this would fail it would try and get attributes from the game object - ending up in ~8 attribute lookups each time. Avoiding PySequence_Check() makes ob.getDistanceTo(otherOb) over twice as fast.

- Joystick hat events could crash the BGE for joysticks with more then 4 hats.
- PLY Import failed on PLY files from Carve, added some extra types.

Commit Details:

Full Hash: 903722299d19a061ec38ca9f17fccc8b389b95a7
SVN Revision: 20596
Parent Commit: a9c29cd
Lines Changed: +23, -6

5 Modified Paths:

/release/scripts/ply_import.py (+2, -0) (Diff)
/source/gameengine/Expressions/PyObjectPlus.h (+1, -1) (Diff)
/source/gameengine/Expressions/Value.cpp (+5, -4) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_JoystickEvents.cpp (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_PyMath.h (+14, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021