Allow setting dimple diff to 0.02 from scripts just like from viewer, add clipping and fix old copy-paste error.

inv-download
Magnuz Binder 2015-03-20 19:30:45 +01:00 committed by Robert Adams
parent 5af82df9b6
commit 68ed200191
1 changed files with 7 additions and 2 deletions

View File

@ -7579,9 +7579,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
dimple.y = 1f;
}
if (dimple.y - cut.x < 0.05f)
if (dimple.y - dimple.x < 0.02f)
{
dimple.x = cut.y - 0.05f;
dimple.x = dimple.y - 0.02f;
if (dimple.x < 0.0f)
{
dimple.x = 0.0f;
dimple.y = 0.02f;
}
}
shapeBlock.ProfileBegin = (ushort)(50000 * dimple.x);
shapeBlock.ProfileEnd = (ushort)(50000 * (1 - dimple.y));