ignore prims with shape type none on max size check for physics

also on llStatus()
melanie
UbitUmarov 2016-10-25 20:44:41 +01:00
parent db0c268140
commit 7c4f2b048f
1 changed files with 5 additions and 6 deletions

View File

@ -100,11 +100,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
protected IScriptEngine m_ScriptEngine;
protected SceneObjectPart m_host;
/// <summary>
/// Used for script sleeps when we are using co-operative script termination.
/// </summary>
/// <remarks>null if co-operative script termination is not active</remarks>
/// <summary>
/// The item that hosts this script
/// </summary>
@ -1641,12 +1637,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
foreach (SceneObjectPart part in group.Parts)
{
if (part.PhysicsShapeType == (byte)PhysicsShapeType.None)
continue;
if (part.Scale.X > World.m_maxPhys || part.Scale.Y > World.m_maxPhys || part.Scale.Z > World.m_maxPhys)
{
allow = false;
break;
}
if (checkShape && part.PhysicsShapeType != (byte)PhysicsShapeType.None)
if (checkShape)
{
if (--maxprims < 0)
{