diff options
author | UbitUmarov | 2016-10-21 17:58:17 +0100 |
---|---|---|
committer | UbitUmarov | 2016-10-21 17:58:17 +0100 |
commit | 2ce0673af25901564060edab9e9ce67bbcc7c914 (patch) | |
tree | eae37a850319184ea16c30ffb8b62cf950423f1b /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |
parent | Merge branch 'master' into httptests (diff) | |
parent | ignore prims with shape type none on max size check for physics (diff) | |
download | opensim-SC-2ce0673af25901564060edab9e9ce67bbcc7c914.zip opensim-SC-2ce0673af25901564060edab9e9ce67bbcc7c914.tar.gz opensim-SC-2ce0673af25901564060edab9e9ce67bbcc7c914.tar.bz2 opensim-SC-2ce0673af25901564060edab9e9ce67bbcc7c914.tar.xz |
Merge branch 'master' into httptests
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 53a9441..e643db7 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -3869,15 +3869,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
3869 | for (int i = 0; i < parts.Length; i++) | 3869 | for (int i = 0; i < parts.Length; i++) |
3870 | { | 3870 | { |
3871 | SceneObjectPart part = parts[i]; | 3871 | SceneObjectPart part = parts[i]; |
3872 | if (part.Scale.X > m_scene.m_maxPhys || | ||
3873 | part.Scale.Y > m_scene.m_maxPhys || | ||
3874 | part.Scale.Z > m_scene.m_maxPhys ) | ||
3875 | { | ||
3876 | UsePhysics = false; // Reset physics | ||
3877 | break; | ||
3878 | } | ||
3879 | 3872 | ||
3880 | if (checkShape && part.PhysicsShapeType != (byte)PhysicsShapeType.None) | 3873 | if(part.PhysicsShapeType == (byte)PhysicsShapeType.None) |
3874 | continue; // assuming root type was checked elsewhere | ||
3875 | |||
3876 | if (checkShape) | ||
3881 | { | 3877 | { |
3882 | if (--maxprims < 0) | 3878 | if (--maxprims < 0) |
3883 | { | 3879 | { |
@@ -3885,6 +3881,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
3885 | break; | 3881 | break; |
3886 | } | 3882 | } |
3887 | } | 3883 | } |
3884 | |||
3885 | if (part.Scale.X > m_scene.m_maxPhys || | ||
3886 | part.Scale.Y > m_scene.m_maxPhys || | ||
3887 | part.Scale.Z > m_scene.m_maxPhys ) | ||
3888 | { | ||
3889 | UsePhysics = false; // Reset physics | ||
3890 | break; | ||
3891 | } | ||
3888 | } | 3892 | } |
3889 | } | 3893 | } |
3890 | 3894 | ||