Blender Git Loki

Git Commits -> Revision 9521fa9

Revision 9521fa9 by Campbell Barton (master)
August 25, 2009, 13:54 (GMT)
remove gameOb.has_key(key) method from KX_GameObject and ListValue since python 3.x removes has_key from dictionaries.
Instead use __contains__, eg.
if key in gameOb: ...

Mathutils returns from PyMath.cpp were incorrectly using wrapped Mathutils types. Wrapped types should only be used with a callback now.

Commit Details:

Full Hash: 9521fa94569b0ab1fe5c9f451e8abf7dd2290b13
SVN Revision: 22768
Parent Commit: 855974d
Lines Changed: +7, -39

6 Modified Paths:

/source/gameengine/Expressions/ListValue.cpp (+0, -9) (Diff)
/source/gameengine/Expressions/ListValue.h (+0, -1) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+0, -9) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+0, -1) (Diff)
/source/gameengine/Ketsji/KX_PyMath.cpp (+4, -4) (Diff)
/source/gameengine/PyDoc/GameTypes.py (+3, -15) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021