mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
mantis 8140: fix objectTeleport rotation if stop TRUE
This commit is contained in:
@@ -900,11 +900,19 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
rotation.Normalize();
|
||||
if(stop)
|
||||
{
|
||||
RootPart.Stop();
|
||||
if(Math.Abs(rotation.W) < 0.999)
|
||||
{
|
||||
Quaternion rot = RootPart.RotationOffset;
|
||||
rot *= rotation;
|
||||
RootPart.RotationOffset = rot;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
rotation.Normalize();
|
||||
if(Math.Abs(rotation.W) < 0.999)
|
||||
{
|
||||
Quaternion rot = RootPart.RotationOffset;
|
||||
|
||||
Reference in New Issue
Block a user