Allow setting hollow to 99% from scripts just like from viewer.

inv-download
Magnuz Binder 2015-03-20 18:43:42 +01:00 committed by Robert Adams
parent f63d6ffd81
commit 07a75677c3
2 changed files with 6 additions and 6 deletions

View File

@ -7450,12 +7450,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
hollow = 0.70f; hollow = 0.70f;
} }
} }
// Otherwise, hollow is limited to 95%. // Otherwise, hollow is limited to 99%.
else else
{ {
if (hollow > 0.95f) if (hollow > 0.99f)
{ {
hollow = 0.95f; hollow = 0.99f;
} }
} }
shapeBlock.ProfileHollow = (ushort)(50000 * hollow); shapeBlock.ProfileHollow = (ushort)(50000 * hollow);

View File

@ -209,11 +209,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
ScriptBaseClass.PRIM_TYPE_BOX, // Prim type ScriptBaseClass.PRIM_TYPE_BOX, // Prim type
ScriptBaseClass.PRIM_HOLE_TRIANGLE, // Prim hole type ScriptBaseClass.PRIM_HOLE_TRIANGLE, // Prim hole type
new LSL_Types.Vector3(0.0d, 1.0d, 0.0d), // Prim cut new LSL_Types.Vector3(0.0d, 1.0d, 0.0d), // Prim cut
0.95f, // Prim hollow 0.99f, // Prim hollow
new LSL_Types.Vector3(1.0d, 0.0d, 0.0d), // Prim twist new LSL_Types.Vector3(1.0d, 0.0d, 0.0d), // Prim twist
new LSL_Types.Vector3(1.0d, 1.0d, 0.0d), // Prim taper new LSL_Types.Vector3(1.0d, 1.0d, 0.0d), // Prim taper
new LSL_Types.Vector3(0.0d, 0.0d, 0.0d), // Prim shear new LSL_Types.Vector3(0.0d, 0.0d, 0.0d), // Prim shear
0.95f); // Prim hollow check 0.99f); // Prim hollow check
// Test a tube. // Test a tube.
CheckllSetPrimitiveParams( CheckllSetPrimitiveParams(
@ -246,7 +246,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
ScriptBaseClass.PRIM_TYPE_PRISM, // Prim type ScriptBaseClass.PRIM_TYPE_PRISM, // Prim type
ScriptBaseClass.PRIM_HOLE_SQUARE, // Prim hole type ScriptBaseClass.PRIM_HOLE_SQUARE, // Prim hole type
new LSL_Types.Vector3(0.0d, 1.0d, 0.0d), // Prim cut new LSL_Types.Vector3(0.0d, 1.0d, 0.0d), // Prim cut
0.95f, // Prim hollow 0.99f, // Prim hollow
// Expression for x selected to test precision problems during sbyte // Expression for x selected to test precision problems during sbyte
// cast in SetPrimitiveShapeBlockParams. // cast in SetPrimitiveShapeBlockParams.
new LSL_Types.Vector3(0.7d + 0.2d, 0.0d, 0.0d), // Prim twist new LSL_Types.Vector3(0.7d + 0.2d, 0.0d, 0.0d), // Prim twist