Make configuration uniform

Pickup the max physical prim size in Scene to make it uniform since adding code to get default size from the OpenSim*.ini.
iar_mods
BlueWall 2012-02-05 12:38:20 -05:00
parent 8923ad755d
commit 4e11983c7c
1 changed files with 3 additions and 3 deletions

View File

@ -2423,9 +2423,9 @@ namespace OpenSim.Region.Framework.Scenes
for (int i = 0; i < parts.Length; i++) for (int i = 0; i < parts.Length; i++)
{ {
SceneObjectPart part = parts[i]; SceneObjectPart part = parts[i];
if (part.Scale.X > m_scene.RegionInfo.PhysPrimMax || if (part.Scale.X > m_scene.m_maxPhys ||
part.Scale.Y > m_scene.RegionInfo.PhysPrimMax || part.Scale.Y > m_scene.m_maxPhys ||
part.Scale.Z > m_scene.RegionInfo.PhysPrimMax) part.Scale.Z > m_scene.m_maxPhys )
{ {
UsePhysics = false; // Reset physics UsePhysics = false; // Reset physics
break; break;