aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorUbitUmarov2016-08-25 09:51:34 +0100
committerUbitUmarov2016-08-25 09:51:34 +0100
commitd5f376a4b10ffdb5acc17d4e350a0a523ba0e9f5 (patch)
treeb609e2426f3238a1eef0c61e06596e3fad5e5c86 /OpenSim/Region/Framework/Scenes
parent suspend the use of SelectedObjects list. It is not threadSafe and is not in ... (diff)
downloadopensim-SC-d5f376a4b10ffdb5acc17d4e350a0a523ba0e9f5.zip
opensim-SC-d5f376a4b10ffdb5acc17d4e350a0a523ba0e9f5.tar.gz
opensim-SC-d5f376a4b10ffdb5acc17d4e350a0a523ba0e9f5.tar.bz2
opensim-SC-d5f376a4b10ffdb5acc17d4e350a0a523ba0e9f5.tar.xz
send selected objects Proprieties udp part outside update queues and as a physics single caps message per selection request
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs14
1 files changed, 3 insertions, 11 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs
index f8996d0..4d491d1 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs
@@ -166,7 +166,7 @@ namespace OpenSim.Region.Framework.Scenes
166 /// <param name="remoteClient"></param> 166 /// <param name="remoteClient"></param>
167 public void SelectPrim(List<uint> primIDs, IClientAPI remoteClient) 167 public void SelectPrim(List<uint> primIDs, IClientAPI remoteClient)
168 { 168 {
169 List<SceneObjectPart> needUpdates = new List<SceneObjectPart>(); 169 List<ISceneEntity> needUpdates = new List<ISceneEntity>();
170 170
171 foreach(uint primLocalID in primIDs) 171 foreach(uint primLocalID in primIDs)
172 { 172 {
@@ -179,7 +179,7 @@ namespace OpenSim.Region.Framework.Scenes
179 if (sog == null) 179 if (sog == null)
180 continue; 180 continue;
181 181
182 needUpdates.Add(part); 182 needUpdates.Add((ISceneEntity)part);
183 183
184 // waste of time because properties do not send prim flags as they should 184 // waste of time because properties do not send prim flags as they should
185 // if a friend got or lost edit rights after login, a full update is needed 185 // if a friend got or lost edit rights after login, a full update is needed
@@ -196,15 +196,7 @@ namespace OpenSim.Region.Framework.Scenes
196 } 196 }
197 197
198 if(needUpdates.Count > 0) 198 if(needUpdates.Count > 0)
199 { 199 remoteClient.SendSelectedPartsProprieties(needUpdates);
200 // this will be replaced by single client function
201 // that will send the UDP and Caps part
202 foreach(SceneObjectPart part in needUpdates)
203 {
204 part.SendPropertiesToClient(remoteClient);
205 remoteClient.SendPartPhysicsProprieties(part);
206 }
207 }
208 } 200 }
209 201
210 /// <summary> 202 /// <summary>