BGE PyAPI fixes
authorCampbell Barton <ideasman42@gmail.com>
Wed, 3 Jun 2009 04:12:59 +0000 (04:12 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 3 Jun 2009 04:12:59 +0000 (04:12 +0000)
commit903722299d19a061ec38ca9f17fccc8b389b95a7
tree2797395cf33dadf58fd786dc03dc655c3d450567
parenta9c29cd4154fcc3933d59eb06d4fe20790298e88
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.
release/scripts/ply_import.py
source/gameengine/Expressions/PyObjectPlus.h
source/gameengine/Expressions/Value.cpp
source/gameengine/GameLogic/Joystick/SCA_JoystickEvents.cpp
source/gameengine/Ketsji/KX_PyMath.h