aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index c3e89f6..435b6e3 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -1265,9 +1265,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1265 // TODO: this needs to trigger a persistance save as well 1265 // TODO: this needs to trigger a persistance save as well
1266 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted) 1266 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
1267 return; 1267 return;
1268 // scale.x < 0.01 in a manner which handles rounding errors 1268 if (scale.x < 0.01)
1269 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) 1269 scale.x = 0.01;
1270 return; 1270 if (scale.y < 0.01)
1271 scale.y = 0.01;
1272 if (scale.z < 0.01)
1273 scale.z = 0.01;
1271 1274
1272 if (part.ParentGroup.RootPart.PhysActor != null && part.ParentGroup.RootPart.PhysActor.IsPhysical) 1275 if (part.ParentGroup.RootPart.PhysActor != null && part.ParentGroup.RootPart.PhysActor.IsPhysical)
1273 { 1276 {