mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
ignore prims with shape type none on max size check for physics
This commit is contained in:
@@ -3869,15 +3869,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
for (int i = 0; i < parts.Length; i++)
|
||||
{
|
||||
SceneObjectPart part = parts[i];
|
||||
if (part.Scale.X > m_scene.m_maxPhys ||
|
||||
part.Scale.Y > m_scene.m_maxPhys ||
|
||||
part.Scale.Z > m_scene.m_maxPhys )
|
||||
{
|
||||
UsePhysics = false; // Reset physics
|
||||
break;
|
||||
}
|
||||
|
||||
if (checkShape && part.PhysicsShapeType != (byte)PhysicsShapeType.None)
|
||||
if(part.PhysicsShapeType == (byte)PhysicsShapeType.None)
|
||||
continue; // assuming root type was checked elsewhere
|
||||
|
||||
if (checkShape)
|
||||
{
|
||||
if (--maxprims < 0)
|
||||
{
|
||||
@@ -3885,6 +3881,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (part.Scale.X > m_scene.m_maxPhys ||
|
||||
part.Scale.Y > m_scene.m_maxPhys ||
|
||||
part.Scale.Z > m_scene.m_maxPhys )
|
||||
{
|
||||
UsePhysics = false; // Reset physics
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user