irritating warnings

This commit is contained in:
UbitUmarov
2025-10-05 03:37:32 +01:00
parent 5590105e31
commit 7249b20796

View File

@@ -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