mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
Allow setting profilecut diff to 0.02 from scripts just like from viewer.
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
This commit is contained in:
committed by
Michael Cerquoni
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);
|
||||
|
||||
Reference in New Issue
Block a user