aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs
diff options
context:
space:
mode:
authorSean Dague2007-11-13 19:57:11 +0000
committerSean Dague2007-11-13 19:57:11 +0000
commiteb41ec00c94170305fd764d5e0ad5bee04018551 (patch)
treea46c4acb189887b44f63f4e2bd0d6c808b58f0be /OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs
parentAdded "remove-region <region name>" console command that "should" remove the ... (diff)
downloadopensim-SC-eb41ec00c94170305fd764d5e0ad5bee04018551.zip
opensim-SC-eb41ec00c94170305fd764d5e0ad5bee04018551.tar.gz
opensim-SC-eb41ec00c94170305fd764d5e0ad5bee04018551.tar.bz2
opensim-SC-eb41ec00c94170305fd764d5e0ad5bee04018551.tar.xz
first pass on unlinking of objects. From Jay Clarke (IBM)
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs24
1 files changed, 22 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs
index f941d6c..82ad1c8 100644
--- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs
+++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs
@@ -223,7 +223,7 @@ namespace OpenSim.Region.ClientStack
223 #region Objects/m_sceneObjects 223 #region Objects/m_sceneObjects
224 224
225 case PacketType.ObjectLink: 225 case PacketType.ObjectLink:
226 // OpenSim.Framework.Console.MainLog.Instance.Verbose( Pack.ToString()); 226 //OpenSim.Framework.Console.MainLog.Instance.Verbose( Pack.ToString());
227 ObjectLinkPacket link = (ObjectLinkPacket) Pack; 227 ObjectLinkPacket link = (ObjectLinkPacket) Pack;
228 uint parentprimid = 0; 228 uint parentprimid = 0;
229 List<uint> childrenprims = new List<uint>(); 229 List<uint> childrenprims = new List<uint>();
@@ -241,6 +241,26 @@ namespace OpenSim.Region.ClientStack
241 OnLinkObjects(parentprimid, childrenprims); 241 OnLinkObjects(parentprimid, childrenprims);
242 } 242 }
243 break; 243 break;
244 case PacketType.ObjectDelink:
245 //OpenSim.Framework.Console.MainLog.Instance.Verbose( Pack.ToString());
246 ObjectDelinkPacket delink = (ObjectDelinkPacket) Pack;
247
248 // It appears the prim at index 0 is not always the root prim (for
249 // instance, when one prim of a link set has been edited independently
250 // of the others). Therefore, we'll pass all the ids onto the delink
251 // method for it to decide which is the root.
252 List<uint> prims = new List<uint>();
253 for (int i = 0; i < delink.ObjectData.Length; i++)
254 {
255 prims.Add(delink.ObjectData[i].ObjectLocalID);
256 }
257
258 if (OnDelinkObjects != null)
259 {
260 OnDelinkObjects(prims);
261 }
262
263 break;
244 case PacketType.ObjectAdd: 264 case PacketType.ObjectAdd:
245 if (OnAddPrim != null) 265 if (OnAddPrim != null)
246 { 266 {
@@ -775,4 +795,4 @@ namespace OpenSim.Region.ClientStack
775 OutPacket(logReply); 795 OutPacket(logReply);
776 } 796 }
777 } 797 }
778} \ No newline at end of file 798}