Allow setting hollow to 99% from scripts just like from viewer.
parent
f63d6ffd81
commit
07a75677c3
|
@ -7450,12 +7450,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
hollow = 0.70f;
|
||||
}
|
||||
}
|
||||
// Otherwise, hollow is limited to 95%.
|
||||
// Otherwise, hollow is limited to 99%.
|
||||
else
|
||||
{
|
||||
if (hollow > 0.95f)
|
||||
if (hollow > 0.99f)
|
||||
{
|
||||
hollow = 0.95f;
|
||||
hollow = 0.99f;
|
||||
}
|
||||
}
|
||||
shapeBlock.ProfileHollow = (ushort)(50000 * hollow);
|
||||
|
|
|
@ -209,11 +209,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
|||
ScriptBaseClass.PRIM_TYPE_BOX, // Prim type
|
||||
ScriptBaseClass.PRIM_HOLE_TRIANGLE, // Prim hole type
|
||||
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, 1.0d, 0.0d), // Prim taper
|
||||
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.
|
||||
CheckllSetPrimitiveParams(
|
||||
|
@ -246,7 +246,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
|||
ScriptBaseClass.PRIM_TYPE_PRISM, // Prim type
|
||||
ScriptBaseClass.PRIM_HOLE_SQUARE, // Prim hole type
|
||||
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
|
||||
// cast in SetPrimitiveShapeBlockParams.
|
||||
new LSL_Types.Vector3(0.7d + 0.2d, 0.0d, 0.0d), // Prim twist
|
||||
|
|
Loading…
Reference in New Issue