diff options
Merge branch 'master' into bigmerge
Conflicts:
OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 0a8edf9..a2e13ce 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -821,7 +821,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
821 | m_rotationOffset = actor.Orientation; | 821 | m_rotationOffset = actor.Orientation; |
822 | } | 822 | } |
823 | } | 823 | } |
824 | 824 | ||
825 | // float roll, pitch, yaw = 0; | ||
826 | // m_rotationOffset.GetEulerAngles(out roll, out pitch, out yaw); | ||
827 | // | ||
828 | // m_log.DebugFormat( | ||
829 | // "[SCENE OBJECT PART]: Got euler {0} for RotationOffset on {1} {2}", | ||
830 | // new Vector3(roll, pitch, yaw), Name, LocalId); | ||
831 | |||
825 | return m_rotationOffset; | 832 | return m_rotationOffset; |
826 | } | 833 | } |
827 | 834 | ||
@@ -858,6 +865,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
858 | m_log.Error("[SCENEOBJECTPART]: ROTATIONOFFSET" + ex.Message); | 865 | m_log.Error("[SCENEOBJECTPART]: ROTATIONOFFSET" + ex.Message); |
859 | } | 866 | } |
860 | } | 867 | } |
868 | |||
869 | // float roll, pitch, yaw = 0; | ||
870 | // m_rotationOffset.GetEulerAngles(out roll, out pitch, out yaw); | ||
871 | // | ||
872 | // m_log.DebugFormat( | ||
873 | // "[SCENE OBJECT PART]: Set euler {0} for RotationOffset on {1} {2}", | ||
874 | // new Vector3(roll, pitch, yaw), Name, LocalId); | ||
861 | } | 875 | } |
862 | } | 876 | } |
863 | 877 | ||
@@ -4548,12 +4562,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
4548 | PhysActor = null; | 4562 | PhysActor = null; |
4549 | } | 4563 | } |
4550 | 4564 | ||
4565 | /// <summary> | ||
4566 | /// This updates the part's rotation and sends out an update to clients if necessary. | ||
4567 | /// </summary> | ||
4568 | /// <param name="rot"></param> | ||
4551 | public void UpdateRotation(Quaternion rot) | 4569 | public void UpdateRotation(Quaternion rot) |
4552 | { | 4570 | { |
4553 | if ((rot.X != RotationOffset.X) || | 4571 | if (rot != RotationOffset) |
4554 | (rot.Y != RotationOffset.Y) || | ||
4555 | (rot.Z != RotationOffset.Z) || | ||
4556 | (rot.W != RotationOffset.W)) | ||
4557 | { | 4572 | { |
4558 | RotationOffset = rot; | 4573 | RotationOffset = rot; |
4559 | 4574 | ||