mantis 8140: fix objectTeleport rotation if stop TRUE
parent
4bb27917f4
commit
c6150c2066
|
@ -900,11 +900,19 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rotation.Normalize();
|
||||||
if(stop)
|
if(stop)
|
||||||
|
{
|
||||||
RootPart.Stop();
|
RootPart.Stop();
|
||||||
|
if(Math.Abs(rotation.W) < 0.999)
|
||||||
|
{
|
||||||
|
Quaternion rot = RootPart.RotationOffset;
|
||||||
|
rot *= rotation;
|
||||||
|
RootPart.RotationOffset = rot;
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
rotation.Normalize();
|
|
||||||
if(Math.Abs(rotation.W) < 0.999)
|
if(Math.Abs(rotation.W) < 0.999)
|
||||||
{
|
{
|
||||||
Quaternion rot = RootPart.RotationOffset;
|
Quaternion rot = RootPart.RotationOffset;
|
||||||
|
|
Loading…
Reference in New Issue