fixed some motionstate synchronization issues
[blender-staging.git] / source / gameengine / Ketsji / KX_NearSensor.cpp
index fac2302b85e84bc9a9ab99a3cf91859bdddcc072..34561045cab2e157d7c2724291715b6524bcfa24 100644 (file)
@@ -116,6 +116,7 @@ CValue* KX_NearSensor::GetReplica()
        //replica->m_sumoObj->setMargin(m_Margin);
        //replica->m_sumoObj->setClientObject(replica->m_client_info);
        
+       ((KX_GameObject*)replica->GetParent())->GetSGNode()->ComputeWorldTransforms(NULL);
        replica->SynchronizeTransform();
        
        return replica;
@@ -139,7 +140,7 @@ void KX_NearSensor::ReParent(SCA_IObject* parent)
        client_info->m_sensors.push_back(this);
        SCA_ISensor::ReParent(parent);
 */
-
+       ((KX_GameObject*)GetParent())->GetSGNode()->ComputeWorldTransforms(NULL);
        SynchronizeTransform();
 }