diff options
author | UbitUmarov | 2016-09-03 07:09:05 +0100 |
---|---|---|
committer | UbitUmarov | 2016-09-03 07:09:05 +0100 |
commit | 16cec3041fcea3ffb8f2fd2f84da0ec690154f6c (patch) | |
tree | b23911d39694a344a87dc48af1428ddb32bd98da /OpenSim/Region | |
parent | ConvexDecomposition remove a copy of vertices not needed for ubOde (diff) | |
download | opensim-SC-16cec3041fcea3ffb8f2fd2f84da0ec690154f6c.zip opensim-SC-16cec3041fcea3ffb8f2fd2f84da0ec690154f6c.tar.gz opensim-SC-16cec3041fcea3ffb8f2fd2f84da0ec690154f6c.tar.bz2 opensim-SC-16cec3041fcea3ffb8f2fd2f84da0ec690154f6c.tar.xz |
<0,0,0,0> is not a rotation
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs index 0fb3574..0585f8b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/LSL2CSCodeTransformer.cs | |||
@@ -191,7 +191,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
191 | Constant rca = new Constant(p, "float", "0.0"); | 191 | Constant rca = new Constant(p, "float", "0.0"); |
192 | Constant rcb = new Constant(p, "float", "0.0"); | 192 | Constant rcb = new Constant(p, "float", "0.0"); |
193 | Constant rcc = new Constant(p, "float", "0.0"); | 193 | Constant rcc = new Constant(p, "float", "0.0"); |
194 | Constant rcd = new Constant(p, "float", "0.0"); | 194 | Constant rcd = new Constant(p, "float", "1.0"); |
195 | ConstantExpression rcea = new ConstantExpression(p, rca); | 195 | ConstantExpression rcea = new ConstantExpression(p, rca); |
196 | ConstantExpression rceb = new ConstantExpression(p, rcb); | 196 | ConstantExpression rceb = new ConstantExpression(p, rcb); |
197 | ConstantExpression rcec = new ConstantExpression(p, rcc); | 197 | ConstantExpression rcec = new ConstantExpression(p, rcc); |
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index d501979..9fb1e2c 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | |||
@@ -339,7 +339,7 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
339 | y = (float)Quat.y; | 339 | y = (float)Quat.y; |
340 | z = (float)Quat.z; | 340 | z = (float)Quat.z; |
341 | s = (float)Quat.s; | 341 | s = (float)Quat.s; |
342 | if (x == 0 && y == 0 && z == 0 && s == 0) | 342 | if (s == 0 && x == 0 && y == 0 && z == 0) |
343 | s = 1; | 343 | s = 1; |
344 | } | 344 | } |
345 | 345 | ||
@@ -349,7 +349,7 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
349 | y = Y; | 349 | y = Y; |
350 | z = Z; | 350 | z = Z; |
351 | s = S; | 351 | s = S; |
352 | if (x == 0 && y == 0 && z == 0 && s == 0) | 352 | if (s == 0 && x == 0 && y == 0 && z == 0) |
353 | s = 1; | 353 | s = 1; |
354 | } | 354 | } |
355 | 355 | ||
@@ -368,7 +368,7 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
368 | res = res & Double.TryParse(tmps[1], NumberStyles.Float, Culture.NumberFormatInfo, out y); | 368 | res = res & Double.TryParse(tmps[1], NumberStyles.Float, Culture.NumberFormatInfo, out y); |
369 | res = res & Double.TryParse(tmps[2], NumberStyles.Float, Culture.NumberFormatInfo, out z); | 369 | res = res & Double.TryParse(tmps[2], NumberStyles.Float, Culture.NumberFormatInfo, out z); |
370 | res = res & Double.TryParse(tmps[3], NumberStyles.Float, Culture.NumberFormatInfo, out s); | 370 | res = res & Double.TryParse(tmps[3], NumberStyles.Float, Culture.NumberFormatInfo, out s); |
371 | if (x == 0 && y == 0 && z == 0 && s == 0) | 371 | if (s == 0 && x == 0 && y == 0 && z == 0) |
372 | s = 1; | 372 | s = 1; |
373 | } | 373 | } |
374 | 374 | ||