Revision: 39723
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39723
Author: campbellbarton
Date: 2011-08-27 01:37:47 +0000 (Sat, 27 Aug 2011)
Log Message:
-----------
bge py api XK_GameObject.linVelocityMin was returning linVelocityMax.
Modified Paths:
--------------
trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp
Modified: trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp 2011-08-27
01:24:05 UTC (rev 39722)
+++ trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp 2011-08-27
01:37:47 UTC (rev 39723)
@@ -1839,7 +1839,7 @@
{
KX_GameObject* self= static_cast<KX_GameObject*>(self_v);
KX_IPhysicsController *spc = self->GetPhysicsController();
- return PyFloat_FromDouble(spc ? spc->GetLinVelocityMax() : 0.0f);
+ return PyFloat_FromDouble(spc ? spc->GetLinVelocityMin() : 0.0f);
}
int KX_GameObject::pyattr_set_lin_vel_min(void *self_v, const
KX_PYATTRIBUTE_DEF *attrdef, PyObject *value)
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs