mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
vehicle parameters do cross (i hope) on regions in same instance ( others need xml)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user