vehicle parameters do cross (i hope) on regions in same instance ( others need xml)

This commit is contained in:
UbitUmarov
2012-02-18 16:16:48 +00:00
parent 5351ff925c
commit 91a326331f
2 changed files with 57 additions and 13 deletions

View File

@@ -1782,14 +1782,19 @@ namespace OpenSim.Region.Framework.Scenes
// ResetChildPrimPhysicsPositions();
if (m_rootPart.PhysActor != null)
{
if (m_vehicle != null)
m_vehicle.SetVehicle(m_rootPart.PhysActor);
m_rootPart.PhysActor.Building = false;
}
}
else
{
// Apply physics to the root prim
m_rootPart.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_rootPart.VolumeDetectActive, false);
if (m_rootPart.PhysActor != null && m_vehicle != null)
{
m_vehicle.SetVehicle(m_rootPart.PhysActor);
}
}
}