aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneGraph.cs
diff options
context:
space:
mode:
authorUbitUmarov2014-09-08 23:58:49 +0100
committerUbitUmarov2014-09-08 23:58:49 +0100
commit8e15d4ad57de6f2a0c900968ef778fba7cdced63 (patch)
tree658bf83163998e842ab5d453441370a61a2a43a4 /OpenSim/Region/Framework/Scenes/SceneGraph.cs
parent on drop send full update on root prim, terse on others ( as sl ). Fix (diff)
downloadopensim-SC_OLD-8e15d4ad57de6f2a0c900968ef778fba7cdced63.zip
opensim-SC_OLD-8e15d4ad57de6f2a0c900968ef778fba7cdced63.tar.gz
opensim-SC_OLD-8e15d4ad57de6f2a0c900968ef778fba7cdced63.tar.bz2
opensim-SC_OLD-8e15d4ad57de6f2a0c900968ef778fba7cdced63.tar.xz
limit number of prims on physical objects. Not all cases covered still
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneGraph.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index b0f8991..973891b 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -1547,6 +1547,7 @@ namespace OpenSim.Region.Framework.Scenes
1547 // VolumeDetect can't be set via UI and will always be off when a change is made there 1547 // VolumeDetect can't be set via UI and will always be off when a change is made there
1548 // now only change volume dtc if phantom off 1548 // now only change volume dtc if phantom off
1549 1549
1550 bool wantedPhys = UsePhysics;
1550 if (PhysData.PhysShapeType == PhysShapeType.invalid) // check for extraPhysics data 1551 if (PhysData.PhysShapeType == PhysShapeType.invalid) // check for extraPhysics data
1551 { 1552 {
1552 bool vdtc; 1553 bool vdtc;
@@ -1563,10 +1564,17 @@ namespace OpenSim.Region.Framework.Scenes
1563 if (part != null) 1564 if (part != null)
1564 { 1565 {
1565 part.UpdateExtraPhysics(PhysData); 1566 part.UpdateExtraPhysics(PhysData);
1566 if (part.UpdatePhysRequired) 1567 if (part.UpdatePhysRequired && remoteClient != null)
1567 remoteClient.SendPartPhysicsProprieties(part); 1568 remoteClient.SendPartPhysicsProprieties(part);
1568 } 1569 }
1569 } 1570 }
1571
1572 if (wantedPhys != group.UsesPhysics && remoteClient != null)
1573 {
1574 remoteClient.SendAlertMessage("Object physics canceled because exceeds the limit of " +
1575 m_parentScene.m_linksetPhysCapacity + " physical prims with shape type not set to None");
1576 group.RootPart.ScheduleFullUpdate();
1577 }
1570 } 1578 }
1571 } 1579 }
1572 } 1580 }