mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
Guard against negative scale set through LSL functions
This commit is contained in:
@@ -1115,6 +1115,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
if (part == null || part.ParentGroup == null || part.ParentGroup.RootPart == null)
|
||||
return;
|
||||
|
||||
if (scale.x < 0.01 || scale.y < 0.01 || scale.z < 0.01)
|
||||
return;
|
||||
|
||||
if (part.ParentGroup.RootPart.PhysActor != null && part.ParentGroup.RootPart.PhysActor.IsPhysical)
|
||||
{
|
||||
if (scale.x > World.m_maxPhys)
|
||||
|
||||
Reference in New Issue
Block a user