diff options
author | Melanie Thielker | 2008-10-04 14:23:33 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-10-04 14:23:33 +0000 |
commit | 6bf521c7df9e7c151484d50ac01215bf67ec4e6e (patch) | |
tree | 07fff634111b3a757ca322243dbc025cce4e4ca3 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | Remove type="owner" from the data snapshot. Made the parser choke and there (diff) | |
download | opensim-SC-6bf521c7df9e7c151484d50ac01215bf67ec4e6e.zip opensim-SC-6bf521c7df9e7c151484d50ac01215bf67ec4e6e.tar.gz opensim-SC-6bf521c7df9e7c151484d50ac01215bf67ec4e6e.tar.bz2 opensim-SC-6bf521c7df9e7c151484d50ac01215bf67ec4e6e.tar.xz |
Guard against negative scale set through LSL functions
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 783b1e4..655d85c 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -1115,6 +1115,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1115 | if (part == null || part.ParentGroup == null || part.ParentGroup.RootPart == null) | 1115 | if (part == null || part.ParentGroup == null || part.ParentGroup.RootPart == null) |
1116 | return; | 1116 | return; |
1117 | 1117 | ||
1118 | if (scale.x < 0.01 || scale.y < 0.01 || scale.z < 0.01) | ||
1119 | return; | ||
1120 | |||
1118 | if (part.ParentGroup.RootPart.PhysActor != null && part.ParentGroup.RootPart.PhysActor.IsPhysical) | 1121 | if (part.ParentGroup.RootPart.PhysActor != null && part.ParentGroup.RootPart.PhysActor.IsPhysical) |
1119 | { | 1122 | { |
1120 | if (scale.x > World.m_maxPhys) | 1123 | if (scale.x > World.m_maxPhys) |