mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
Tevarus' patch for object flags & implemented Phantom edits
This commit is contained in:
@@ -327,6 +327,22 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// <param name="remoteClient"></param>
|
||||
public void UpdatePrimFlags(uint localID, Packet packet, IClientAPI remoteClient)
|
||||
{
|
||||
bool hasprim = false;
|
||||
foreach (EntityBase ent in Entities.Values)
|
||||
{
|
||||
if (ent is SceneObjectGroup)
|
||||
{
|
||||
hasprim = ((SceneObjectGroup)ent).HasChildPrim(localID);
|
||||
if (hasprim != false)
|
||||
{
|
||||
|
||||
((SceneObjectGroup)ent).UpdatePrimFlags(localID, (ushort)packet.Type, true, packet.ToBytes());
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//System.Console.WriteLine("Got primupdate packet: " + packet.UsePhysics.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user