aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs
diff options
context:
space:
mode:
authorMW2007-06-10 15:43:04 +0000
committerMW2007-06-10 15:43:04 +0000
commit488e71620866c0749a0347d878f0707de2b8eb15 (patch)
treed720273e85e489701d4925fe6e845b964b2e0343 /OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs
parentAnother bug fix (diff)
downloadopensim-SC_OLD-488e71620866c0749a0347d878f0707de2b8eb15.zip
opensim-SC_OLD-488e71620866c0749a0347d878f0707de2b8eb15.tar.gz
opensim-SC_OLD-488e71620866c0749a0347d878f0707de2b8eb15.tar.bz2
opensim-SC_OLD-488e71620866c0749a0347d878f0707de2b8eb15.tar.xz
Prim creation working.
Diffstat (limited to 'OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs')
-rw-r--r--OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs21
1 files changed, 15 insertions, 6 deletions
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs b/OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs
index 9fb52c6..d069f51 100644
--- a/OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs
+++ b/OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs
@@ -91,19 +91,28 @@ namespace OpenSim
91 { 91 {
92 if (multipleupdate.ObjectData[i].Type == 9) //change position 92 if (multipleupdate.ObjectData[i].Type == 9) //change position
93 { 93 {
94 libsecondlife.LLVector3 pos = new LLVector3(multipleupdate.ObjectData[i].Data, 0); 94 if (OnUpdatePrimPosition != null)
95 OnUpdatePrimPosition(multipleupdate.ObjectData[i].ObjectLocalID, pos, this); 95 {
96 libsecondlife.LLVector3 pos = new LLVector3(multipleupdate.ObjectData[i].Data, 0);
97 OnUpdatePrimPosition(multipleupdate.ObjectData[i].ObjectLocalID, pos, this);
98 }
96 //should update stored position of the prim 99 //should update stored position of the prim
97 } 100 }
98 else if (multipleupdate.ObjectData[i].Type == 10)//rotation 101 else if (multipleupdate.ObjectData[i].Type == 10)//rotation
99 { 102 {
100 libsecondlife.LLQuaternion rot = new LLQuaternion(multipleupdate.ObjectData[i].Data, 0, true); 103 if (OnUpdatePrimRotation != null)
101 OnUpdatePrimRotation(multipleupdate.ObjectData[i].ObjectLocalID, rot, this); 104 {
105 libsecondlife.LLQuaternion rot = new LLQuaternion(multipleupdate.ObjectData[i].Data, 0, true);
106 OnUpdatePrimRotation(multipleupdate.ObjectData[i].ObjectLocalID, rot, this);
107 }
102 } 108 }
103 else if (multipleupdate.ObjectData[i].Type == 13)//scale 109 else if (multipleupdate.ObjectData[i].Type == 13)//scale
104 { 110 {
105 libsecondlife.LLVector3 scale = new LLVector3(multipleupdate.ObjectData[i].Data, 12); 111 if (OnUpdatePrimScale != null)
106 OnUpdatePrimScale(multipleupdate.ObjectData[i].ObjectLocalID, scale, this); 112 {
113 libsecondlife.LLVector3 scale = new LLVector3(multipleupdate.ObjectData[i].Data, 12);
114 OnUpdatePrimScale(multipleupdate.ObjectData[i].ObjectLocalID, scale, this);
115 }
107 } 116 }
108 } 117 }
109 return true; 118 return true;