aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
authorlbsa712007-07-13 12:32:34 +0000
committerlbsa712007-07-13 12:32:34 +0000
commit33ef93f4a6ed66dcd06733b3909e647b33faa698 (patch)
treed161a1fe96353ea4077b62f12aa453a7ebd77d9e /OpenSim/Region/ClientStack
parent* OGS project is now back down to zero warnings. (diff)
downloadopensim-SC_OLD-33ef93f4a6ed66dcd06733b3909e647b33faa698.zip
opensim-SC_OLD-33ef93f4a6ed66dcd06733b3909e647b33faa698.tar.gz
opensim-SC_OLD-33ef93f4a6ed66dcd06733b3909e647b33faa698.tar.bz2
opensim-SC_OLD-33ef93f4a6ed66dcd06733b3909e647b33faa698.tar.xz
* ObjectAddPacket now confined to ClientView,´using PrimitiveBaseShape instead - w00t!
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.API.cs2
-rw-r--r--OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs5
2 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs
index b47d95a..2be5b0e 100644
--- a/OpenSim/Region/ClientStack/ClientView.API.cs
+++ b/OpenSim/Region/ClientStack/ClientView.API.cs
@@ -58,7 +58,7 @@ namespace OpenSim.Region.ClientStack
58 public event ObjectSelect OnDeGrapObject; 58 public event ObjectSelect OnDeGrapObject;
59 public event ObjectDuplicate OnObjectDuplicate; 59 public event ObjectDuplicate OnObjectDuplicate;
60 public event MoveObject OnGrapUpdate; 60 public event MoveObject OnGrapUpdate;
61 public event GenericCall4 OnAddPrim; 61 public event AddNewPrim OnAddPrim;
62 public event UpdateShape OnUpdatePrimShape; 62 public event UpdateShape OnUpdatePrimShape;
63 public event ObjectSelect OnObjectSelect; 63 public event ObjectSelect OnObjectSelect;
64 public event GenericCall7 OnObjectDescription; 64 public event GenericCall7 OnObjectDescription;
diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs
index df2bf34..013b755 100644
--- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs
+++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs
@@ -217,7 +217,10 @@ namespace OpenSim.Region.ClientStack
217 case PacketType.ObjectAdd: 217 case PacketType.ObjectAdd:
218 if (OnAddPrim != null) 218 if (OnAddPrim != null)
219 { 219 {
220 OnAddPrim(Pack, this); 220 ObjectAddPacket packet = (ObjectAddPacket) Pack ;
221 PrimitiveBaseShape primShape = PrimitiveBaseShape.FromAddPacket( packet );
222
223 OnAddPrim(this.AgentId, packet.ObjectData.RayEnd, primShape );
221 } 224 }
222 break; 225 break;
223 case PacketType.ObjectShape: 226 case PacketType.ObjectShape: