Blender Git Commit Log

Git Commits -> Revision 3317029

Revision 3317029 by Campbell Barton (master)
April 12, 2009, 06:41 (GMT)
use long long rather then int for storing game logic properties.

There were also some problems with int to python conversion
- assigning a PyLong to a KX_GameObject from python would raise an error
- PyLong were coerced into floats when used with internal CValue arithmetic

Changes...
- PyLong is converted into CIntValue for coercing and assigning from python
- CValue's generic GetNumber() function returns a double rather then a float.
- Print an error when a PyType cant be coerced into a CValue

Tested with python, expressions and property sensor.

Commit Details:

Full Hash: 33170295c8a2f3eb815b6086f47147113fd3de13
SVN Revision: 19669
Parent Commit: 4cd088b
Lines Changed: +70, -58

36 Modified Paths:

/source/gameengine/Expressions/BoolValue.cpp (+2, -2) (Diff)
/source/gameengine/Expressions/BoolValue.h (+1, -1) (Diff)
/source/gameengine/Expressions/ConstExpr.cpp (+1, -1) (Diff)
/source/gameengine/Expressions/ConstExpr.h (+1, -1) (Diff)
/source/gameengine/Expressions/EmptyValue.cpp (+1, -1) (Diff)
/source/gameengine/Expressions/EmptyValue.h (+1, -1) (Diff)
/source/gameengine/Expressions/ErrorValue.cpp (+1, -1) (Diff)
/source/gameengine/Expressions/ErrorValue.h (+1, -1) (Diff)
/source/gameengine/Expressions/FloatValue.cpp (+2, -2) (Diff)
/source/gameengine/Expressions/FloatValue.h (+1, -1) (Diff)
/source/gameengine/Expressions/InputParser.cpp (+5, -3) (Diff)
/source/gameengine/Expressions/InputParser.h (+2, -0) (Diff)
/source/gameengine/Expressions/IntValue.cpp (+12, -9) (Diff)
/source/gameengine/Expressions/IntValue.h (+7, -5) (Diff)
/source/gameengine/Expressions/ListValue.cpp (+1, -1) (Diff)
/source/gameengine/Expressions/ListValue.h (+1, -1) (Diff)
/source/gameengine/Expressions/StringValue.cpp (+1, -1) (Diff)
/source/gameengine/Expressions/StringValue.h (+1, -1) (Diff)
/source/gameengine/Expressions/Value.cpp (+11, -8) (Diff)
/source/gameengine/Expressions/Value.h (+1, -1) (Diff)
/source/gameengine/Expressions/VectorValue.cpp (+1, -1) (Diff)
/source/gameengine/Expressions/VectorValue.h (+1, -1) (Diff)
/source/gameengine/Expressions/VoidValue.h (+1, -1) (Diff)
/source/gameengine/GameLogic/SCA_ExpressionController.cpp (+1, -1) (Diff)
/source/gameengine/GameLogic/SCA_ILogicBrick.cpp (+1, -1) (Diff)
/source/gameengine/GameLogic/SCA_ILogicBrick.h (+1, -1) (Diff)
/source/gameengine/GameLogic/SCA_ISensor.cpp (+1, -1) (Diff)
/source/gameengine/GameLogic/SCA_ISensor.h (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_MeshProxy.cpp (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_MeshProxy.h (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_PolyProxy.cpp (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_PolyProxy.h (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_VertexProxy.cpp (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_VertexProxy.h (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021