limit number of prims on physical objects. Not all cases covered still

This commit is contained in:
UbitUmarov
2014-09-08 23:58:49 +01:00
parent 93143ba012
commit 8e15d4ad57
5 changed files with 78 additions and 3 deletions

View File

@@ -2705,12 +2705,17 @@ namespace OpenSim.Region.Framework.Scenes
return;
}
bool oldUsePhysics = (root.Flags & PrimFlags.Physics) != 0;
m_sceneGraph.LinkObjects(root, children);
ScenePresence sp;
if (TryGetScenePresence(agentId, out sp))
{
root.SendPropertiesToClient(sp.ControllingClient);
if (oldUsePhysics && (root.Flags & PrimFlags.Physics) == 0)
{
sp.ControllingClient.SendAlertMessage("Object physics canceled");
}
}
}