From 7c4f2b048f4d74b3132486e8d7a6887c73d6562d Mon Sep 17 00:00:00 2001
From: UbitUmarov
Date: Tue, 25 Oct 2016 20:44:41 +0100
Subject: ignore prims with shape type none on max size check for physics also
on llStatus()
---
.../Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
(limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 66cb30c..85837e4 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -100,11 +100,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
protected IScriptEngine m_ScriptEngine;
protected SceneObjectPart m_host;
-
- ///
- /// Used for script sleeps when we are using co-operative script termination.
- ///
- /// null if co-operative script termination is not active
+
///
/// The item that hosts this script
///
@@ -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)
{
--
cgit v1.1