mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Merge branch 'master' into bigmerge
Conflicts: OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
This commit is contained in:
@@ -821,7 +821,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
m_rotationOffset = actor.Orientation;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// float roll, pitch, yaw = 0;
|
||||
// m_rotationOffset.GetEulerAngles(out roll, out pitch, out yaw);
|
||||
//
|
||||
// m_log.DebugFormat(
|
||||
// "[SCENE OBJECT PART]: Got euler {0} for RotationOffset on {1} {2}",
|
||||
// new Vector3(roll, pitch, yaw), Name, LocalId);
|
||||
|
||||
return m_rotationOffset;
|
||||
}
|
||||
|
||||
@@ -858,6 +865,13 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
m_log.Error("[SCENEOBJECTPART]: ROTATIONOFFSET" + ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
// float roll, pitch, yaw = 0;
|
||||
// m_rotationOffset.GetEulerAngles(out roll, out pitch, out yaw);
|
||||
//
|
||||
// m_log.DebugFormat(
|
||||
// "[SCENE OBJECT PART]: Set euler {0} for RotationOffset on {1} {2}",
|
||||
// new Vector3(roll, pitch, yaw), Name, LocalId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4548,12 +4562,13 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
PhysActor = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This updates the part's rotation and sends out an update to clients if necessary.
|
||||
/// </summary>
|
||||
/// <param name="rot"></param>
|
||||
public void UpdateRotation(Quaternion rot)
|
||||
{
|
||||
if ((rot.X != RotationOffset.X) ||
|
||||
(rot.Y != RotationOffset.Y) ||
|
||||
(rot.Z != RotationOffset.Z) ||
|
||||
(rot.W != RotationOffset.W))
|
||||
if (rot != RotationOffset)
|
||||
{
|
||||
RotationOffset = rot;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user