ignore prims with shape type none on max size check for physics
also on llStatus()melanie
parent
db0c268140
commit
7c4f2b048f
|
@ -101,10 +101,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
protected IScriptEngine m_ScriptEngine;
|
protected IScriptEngine m_ScriptEngine;
|
||||||
protected SceneObjectPart m_host;
|
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>
|
/// <summary>
|
||||||
/// The item that hosts this script
|
/// The item that hosts this script
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1641,12 +1637,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
|
|
||||||
foreach (SceneObjectPart part in group.Parts)
|
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)
|
if (part.Scale.X > World.m_maxPhys || part.Scale.Y > World.m_maxPhys || part.Scale.Z > World.m_maxPhys)
|
||||||
{
|
{
|
||||||
allow = false;
|
allow = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (checkShape && part.PhysicsShapeType != (byte)PhysicsShapeType.None)
|
if (checkShape)
|
||||||
{
|
{
|
||||||
if (--maxprims < 0)
|
if (--maxprims < 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue