aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs
diff options
context:
space:
mode:
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;