aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
authorMelanie2011-10-11 21:21:44 +0100
committerMelanie2011-10-11 21:21:44 +0100
commitcc1fe354d01f68add960944ea9ac3cd2feba4c7d (patch)
treee56f163d2ced85420137a811701c153c43f6a5e3 /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
parentMerge commit 'a4cc5f628f053ad1f9f849addf79551cd58e9337' into bigmerge (diff)
parentrefactor: rename SOG/SOP.GetProperties() to SendPropertiesToClient() to refle... (diff)
downloadopensim-SC_OLD-cc1fe354d01f68add960944ea9ac3cd2feba4c7d.zip
opensim-SC_OLD-cc1fe354d01f68add960944ea9ac3cd2feba4c7d.tar.gz
opensim-SC_OLD-cc1fe354d01f68add960944ea9ac3cd2feba4c7d.tar.bz2
opensim-SC_OLD-cc1fe354d01f68add960944ea9ac3cd2feba4c7d.tar.xz
Merge commit 'de19dc3024e5359f594d0a32c593d905163c24ea' into bigmerge
Conflicts: OpenSim/Region/Framework/Scenes/Scene.Inventory.cs OpenSim/Region/Framework/Scenes/SceneObjectPart.cs OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs40
1 files changed, 26 insertions, 14 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 0c3b404..5414693 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -1357,8 +1357,6 @@ namespace OpenSim.Region.Framework.Scenes
1357 1357
1358 #endregion Public Properties with only Get 1358 #endregion Public Properties with only Get
1359 1359
1360 #region Private Methods
1361
1362 private uint ApplyMask(uint val, bool set, uint mask) 1360 private uint ApplyMask(uint val, bool set, uint mask)
1363 { 1361 {
1364 if (set) 1362 if (set)
@@ -1371,14 +1369,35 @@ namespace OpenSim.Region.Framework.Scenes
1371 } 1369 }
1372 } 1370 }
1373 1371
1374 private void SendObjectPropertiesToClient(UUID AgentID) 1372 /// <summary>
1373 /// Clear all pending updates of parts to clients
1374 /// </summary>
1375 private void ClearUpdateSchedule()
1376 {
1377 m_updateFlag = 0;
1378 }
1379
1380 /// <summary>
1381 /// Send this part's properties (name, description, inventory serial, base mask, etc.) to a client
1382 /// </summary>
1383 /// <param name="client"></param>
1384 public void SendPropertiesToClient(IClientAPI client)
1385 {
1386 client.SendObjectPropertiesReply(this);
1387 }
1388
1389 /// <summary>
1390 /// For the scene object group to which this part belongs, send that scene object's root part properties to a client.
1391 /// </summary>
1392 /// <param name="AgentID"></param>
1393 private void SendRootPartPropertiesToClient(UUID AgentID)
1375 { 1394 {
1376 m_parentGroup.Scene.ForEachScenePresence(delegate(ScenePresence avatar) 1395 m_parentGroup.Scene.ForEachScenePresence(delegate(ScenePresence avatar)
1377 { 1396 {
1378 // Ugly reference :( 1397 // Ugly reference :(
1379 if (avatar.UUID == AgentID) 1398 if (avatar.UUID == AgentID)
1380 { 1399 {
1381 m_parentGroup.GetProperties(avatar.ControllingClient); 1400 m_parentGroup.SendPropertiesToClient(avatar.ControllingClient);
1382 } 1401 }
1383 }); 1402 });
1384 } 1403 }
@@ -1407,8 +1426,6 @@ namespace OpenSim.Region.Framework.Scenes
1407 // } 1426 // }
1408 // } 1427 // }
1409 1428
1410 #endregion Private Methods
1411
1412 #region Public Methods 1429 #region Public Methods
1413 1430
1414 public void ResetExpire() 1431 public void ResetExpire()
@@ -2077,11 +2094,6 @@ namespace OpenSim.Region.Framework.Scenes
2077 return Vector3.Zero; 2094 return Vector3.Zero;
2078 } 2095 }
2079 2096
2080 public void GetProperties(IClientAPI client)
2081 {
2082 client.SendObjectPropertiesReply(this);
2083 }
2084
2085 /// <summary> 2097 /// <summary>
2086 /// Method for a prim to get it's world position from the group. 2098 /// Method for a prim to get it's world position from the group.
2087 /// </summary> 2099 /// </summary>
@@ -3500,7 +3512,7 @@ namespace OpenSim.Region.Framework.Scenes
3500 { 3512 {
3501 _groupID = groupID; 3513 _groupID = groupID;
3502 if (client != null) 3514 if (client != null)
3503 GetProperties(client); 3515 SendPropertiesToClient(client);
3504 m_updateFlag = 2; 3516 m_updateFlag = 2;
3505 } 3517 }
3506 3518
@@ -4320,10 +4332,10 @@ namespace OpenSim.Region.Framework.Scenes
4320 4332
4321 break; 4333 break;
4322 } 4334 }
4323 SendFullUpdateToAllClients();
4324 4335
4325 SendObjectPropertiesToClient(AgentID); 4336 SendFullUpdateToAllClients();
4326 4337
4338 SendRootPartPropertiesToClient(AgentID);
4327 } 4339 }
4328 } 4340 }
4329 4341