Allow setting profilecut diff to 0.02 from scripts just like from viewer.

Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
inv-download
Magnuz Binder 2015-03-20 19:12:43 +01:00 committed by Michael Cerquoni
parent f11720d71f
commit e855c8e711
1 changed files with 3 additions and 3 deletions

View File

@ -7788,13 +7788,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
profilecut.y = 1f;
}
if (profilecut.y - profilecut.x < 0.05f)
if (profilecut.y - profilecut.x < 0.02f)
{
profilecut.x = profilecut.y - 0.05f;
profilecut.x = profilecut.y - 0.02f;
if (profilecut.x < 0.0f)
{
profilecut.x = 0.0f;
profilecut.y = 0.05f;
profilecut.y = 0.02f;
}
}
shapeBlock.ProfileBegin = (ushort)(50000 * profilecut.x);