From 6359874d640229d803f6c49d2d42c6ec99331742 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 1 Aug 2019 00:01:27 +0100 Subject: [PATCH] mantis8548: let rotation division be -(olderResult) this is formally more correct (and it is the same rotation), keep not normalizing, as SL seems to do --- OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index dd4f974fbb..b01daddcba 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs @@ -533,8 +533,12 @@ namespace OpenSim.Region.ScriptEngine.Shared public static Quaternion operator /(Quaternion a, Quaternion b) { - // assuming normalized - b.s = -b.s; + // assume normalized + // if not, sl seems to not normalize either + b.x = -b.x; + b.y = -b.y; + b.z = -b.z; + return a * b; }