mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
limit number of prims on physical objects. Not all cases covered still
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user