mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
Line ending fix
This commit is contained in:
@@ -6516,15 +6516,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
if (cut.y > 1f)
|
||||
{
|
||||
cut.y = 1f;
|
||||
}
|
||||
if (cut.y - cut.x < 0.05f)
|
||||
{
|
||||
cut.x = cut.y - 0.05f;
|
||||
if (cut.x < 0.0f)
|
||||
{
|
||||
cut.x = 0.0f;
|
||||
cut.y = 0.05f;
|
||||
}
|
||||
}
|
||||
if (cut.y - cut.x < 0.05f)
|
||||
{
|
||||
cut.x = cut.y - 0.05f;
|
||||
if (cut.x < 0.0f)
|
||||
{
|
||||
cut.x = 0.0f;
|
||||
cut.y = 0.05f;
|
||||
}
|
||||
}
|
||||
shapeBlock.ProfileBegin = (ushort)(50000 * cut.x);
|
||||
shapeBlock.ProfileEnd = (ushort)(50000 * (1 - cut.y));
|
||||
@@ -6722,11 +6722,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
}
|
||||
if (profilecut.y - profilecut.x < 0.05f)
|
||||
{
|
||||
profilecut.x = profilecut.y - 0.05f;
|
||||
if (profilecut.x < 0.0f)
|
||||
{
|
||||
profilecut.x = 0.0f;
|
||||
profilecut.y = 0.05f;
|
||||
profilecut.x = profilecut.y - 0.05f;
|
||||
if (profilecut.x < 0.0f)
|
||||
{
|
||||
profilecut.x = 0.0f;
|
||||
profilecut.y = 0.05f;
|
||||
}
|
||||
}
|
||||
shapeBlock.ProfileBegin = (ushort)(50000 * profilecut.x);
|
||||
|
||||
Reference in New Issue
Block a user