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

0.9.1.0-post-fixes
UbitUmarov 2019-08-01 00:01:27 +01:00
parent 0bcd58fd0f
commit 6359874d64
1 changed files with 6 additions and 2 deletions

View File

@ -533,8 +533,12 @@ namespace OpenSim.Region.ScriptEngine.Shared
public static Quaternion operator /(Quaternion a, Quaternion b) public static Quaternion operator /(Quaternion a, Quaternion b)
{ {
// assuming normalized // assume normalized
b.s = -b.s; // if not, sl seems to not normalize either
b.x = -b.x;
b.y = -b.y;
b.z = -b.z;
return a * b; return a * b;
} }