diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneGraph.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneGraph.cs | 10 |
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 | } |