Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/gameengine/Ketsji/KX_SteeringActuator.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_SteeringActuator.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_SteeringActuator.cpp b/source/gameengine/Ketsji/KX_SteeringActuator.cpp
index dd2ff2e305a..16b9285386a 100644
--- a/source/gameengine/Ketsji/KX_SteeringActuator.cpp
+++ b/source/gameengine/Ketsji/KX_SteeringActuator.cpp
@@ -117,6 +117,12 @@ void KX_SteeringActuator::ProcessReplica()
SCA_IActuator::ProcessReplica();
}
+void KX_SteeringActuator::ReParent(SCA_IObject* parent)
+{
+ SCA_IActuator::ReParent(parent);
+ if (m_simulation)
+ m_obstacle = m_simulation->GetObstacle((KX_GameObject*)m_gameobj);
+}
bool KX_SteeringActuator::UnlinkObject(SCA_IObject* clientobj)
{