As per the LL grid, if an avatar is sitting then return it's velocity relative to the region rather than relative to its seat.

Resolves http://opensimulator.org/mantis/view.php?id=7175
bullet-2.82
Justin Clark-Casey (justincc) 2014-08-30 01:09:33 +01:00
parent bb7c88805a
commit 473c559478
1 changed files with 5 additions and 0 deletions

View File

@ -622,9 +622,14 @@ namespace OpenSim.Region.Framework.Scenes
// "[SCENE PRESENCE]: Set velocity {0} for {1} in {2} via getting Velocity!",
// m_velocity, Name, Scene.RegionInfo.RegionName);
}
else if (ParentPart != null)
{
return ParentPart.ParentGroup.Velocity;
}
return m_velocity;
}
set
{
if (PhysicsActor != null)