Bug in KX_GameObject.get() and ListValue.get(), wasn't checking if the CValue derived...
authorCampbell Barton <ideasman42@gmail.com>
Sun, 31 May 2009 17:44:38 +0000 (17:44 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 31 May 2009 17:44:38 +0000 (17:44 +0000)
commit8e882d0d6118d39d5533eff2d196be4bca4be889
tree40813c58705166ede6755b0bfed323b73e600506
parent759d31d320a5f5acc06444bb49ee58948de2d997
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.
source/gameengine/Expressions/ListValue.cpp
source/gameengine/Ketsji/KX_GameObject.cpp