Blender Git Commit Log

Git Commits -> Revision 3a62892

Revision 3a62892 by Campbell Barton (master)
September 13, 2009, 08:17 (GMT)
Patch [#19293] NearSensor: Changing distance and resetDistance from Python did not take effect immediately
from Frank Papenmeier (hodka)
--- from the submission
Changing the distance and resetDistance Properties of a NearSensor from Python did only take effect, once there was
a collision within the old radius.

Reason:
The radius of the PHY_IPhysicsController was not set to the new values.

Solution:
It is set at the end of the CheckResetDistance function. I moved the relevant code snippet from the Evaluate function
into a new function called SetPhysCtrlRadius in order to avoid duplicating code doing the same thing.

Commit Details:

Full Hash: 3a62892a955375b5716f84eab9d0c25c2ea58560
SVN Revision: 23174
Parent Commit: 2951a84
Lines Changed: +22, -14

2 Modified Paths:

/source/gameengine/Ketsji/KX_NearSensor.cpp (+19, -14) (Diff)
/source/gameengine/Ketsji/KX_NearSensor.h (+3, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021