Fixing the patch to the patch

0.6.8-post-fixes
Snowcrash 2009-10-22 15:48:21 +02:00 committed by Melanie
parent 47d8b6c5f5
commit 84ac0f56f5
1 changed files with 6 additions and 3 deletions

View File

@ -1265,9 +1265,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// TODO: this needs to trigger a persistance save as well
if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
return;
// scale.x < 0.01 in a manner which handles rounding errors
if (Math.Round(scale.x - 0.01) > 0.0 || Math.Round(scale.y - 0.01) > 0.0 || Math.Round(scale.z - 0.01) > 0.0)
return;
if (scale.x < 0.01)
scale.x = 0.01;
if (scale.y < 0.01)
scale.y = 0.01;
if (scale.z < 0.01)
scale.z = 0.01;
if (part.ParentGroup.RootPart.PhysActor != null && part.ParentGroup.RootPart.PhysActor.IsPhysical)
{