viewers can set a minimum distance 0.02 between path cut start and path cut end

inv-download
Freaky Tech 2015-03-20 01:02:59 +01:00 committed by Robert Adams
parent 83e58ebc7c
commit 5af82df9b6
1 changed files with 3 additions and 3 deletions

View File

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