Allow setting profilecut diff to 0.02 from scripts just like from viewer.
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>inv-download
parent
f11720d71f
commit
e855c8e711
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue