mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Allow setting dimple diff to 0.02 from scripts just like from viewer, add clipping and fix old copy-paste error.
This commit is contained in:
committed by
Robert Adams
parent
5af82df9b6
commit
68ed200191
@@ -7579,9 +7579,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
dimple.y = 1f;
|
||||
}
|
||||
if (dimple.y - cut.x < 0.05f)
|
||||
if (dimple.y - dimple.x < 0.02f)
|
||||
{
|
||||
dimple.x = cut.y - 0.05f;
|
||||
dimple.x = dimple.y - 0.02f;
|
||||
if (dimple.x < 0.0f)
|
||||
{
|
||||
dimple.x = 0.0f;
|
||||
dimple.y = 0.02f;
|
||||
}
|
||||
}
|
||||
shapeBlock.ProfileBegin = (ushort)(50000 * dimple.x);
|
||||
shapeBlock.ProfileEnd = (ushort)(50000 * (1 - dimple.y));
|
||||
|
||||
Reference in New Issue
Block a user