Blender Git Loki

Git Commits -> Revision 8e882d0

Revision 8e882d0 by Campbell Barton (master)
May 31, 2009, 17:44 (GMT)
Bug in KX_GameObject.get() and ListValue.get(), wasn't checking if the CValue derived objects could be converted to a PyObject.
so where foo is an int prop,
gameOb.get("foo") == 0, would end up returning a CValue int proxy.

This is more a problem for KX_GameObject since ListValues with python access mostly don't contain ints, strings, floats.
This also wont break games from 2.48 since the .get() function wasn't available.

Commit Details:

Full Hash: 8e882d0d6118d39d5533eff2d196be4bca4be889
SVN Revision: 20539
Parent Commit: 759d31d
Lines Changed: +21, -7

2 Modified Paths:

/source/gameengine/Expressions/ListValue.cpp (+14, -5) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+7, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021