From 7249b20796ff67440efefbc2857f48d2ab0815ba Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 5 Oct 2025 03:37:32 +0100 Subject: [PATCH] irritating warnings --- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 5ee4b3e099..06855fadc1 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs @@ -1087,7 +1087,7 @@ namespace OpenSim.Region.Framework.Scenes Quaternion currentRot = RootPart.RotationOffset; if(setrot) - rotation = Quaternion.Conjugate(ref currentRot) * rotation; + rotation = Quaternion.Conjugate(in currentRot) * rotation; bool dorot = setrot || (Math.Abs(rotation.W) < 0.99999); @@ -3266,11 +3266,11 @@ namespace OpenSim.Region.Framework.Scenes // Make the linking root SOP's rotation relative to the new root prim Quaternion oldRot = linkPart.RotationOffset; - Quaternion newRot = Quaternion.Conjugate(ref parentRot) * oldRot; + Quaternion newRot = Quaternion.Conjugate(in parentRot) * oldRot; linkPart.setRotationOffset(newRot); Vector3 axPos = linkPart.OffsetPosition; - axPos *= Quaternion.Conjugate(ref parentRot); + axPos *= Quaternion.Conjugate(in parentRot); linkPart.OffsetPosition = axPos; // If there is only one SOP in a SOG, the LinkNum is zero. I.e., not a linkset. @@ -3682,11 +3682,11 @@ namespace OpenSim.Region.Framework.Scenes // Compute the SOP's rotation relative to the rotation of the group. parentRot = m_rootPart.RotationOffset; - Quaternion newRot = Quaternion.Conjugate(ref parentRot) * worldRot; + Quaternion newRot = Quaternion.Conjugate(in parentRot) * worldRot; part.setRotationOffset(newRot); Vector3 pos = part.OffsetPosition; - pos *= Quaternion.Conjugate(ref parentRot); + pos *= Quaternion.Conjugate(in parentRot); part.OffsetPosition = pos; // update position and orientation on physics also