aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs40
1 files changed, 20 insertions, 20 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 9d16beb..04b3766 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -1127,7 +1127,7 @@ namespace OpenSim.Region.Framework.Scenes
1127 1127
1128 public UUID GetPartsFullID(uint localID) 1128 public UUID GetPartsFullID(uint localID)
1129 { 1129 {
1130 SceneObjectPart part = GetChildPart(localID); 1130 SceneObjectPart part = GetPart(localID);
1131 if (part != null) 1131 if (part != null)
1132 { 1132 {
1133 return part.UUID; 1133 return part.UUID;
@@ -1143,7 +1143,7 @@ namespace OpenSim.Region.Framework.Scenes
1143 } 1143 }
1144 else 1144 else
1145 { 1145 {
1146 SceneObjectPart part = GetChildPart(localId); 1146 SceneObjectPart part = GetPart(localId);
1147 OnGrabPart(part, offsetPos, remoteClient); 1147 OnGrabPart(part, offsetPos, remoteClient);
1148 } 1148 }
1149 } 1149 }
@@ -1904,8 +1904,8 @@ namespace OpenSim.Region.Framework.Scenes
1904 /// Get a part with a given UUID 1904 /// Get a part with a given UUID
1905 /// </summary> 1905 /// </summary>
1906 /// <param name="primID"></param> 1906 /// <param name="primID"></param>
1907 /// <returns>null if a child part with the primID was not found</returns> 1907 /// <returns>null if a part with the primID was not found</returns>
1908 public SceneObjectPart GetChildPart(UUID primID) 1908 public SceneObjectPart GetPart(UUID primID)
1909 { 1909 {
1910 SceneObjectPart childPart; 1910 SceneObjectPart childPart;
1911 m_parts.TryGetValue(primID, out childPart); 1911 m_parts.TryGetValue(primID, out childPart);
@@ -1916,8 +1916,8 @@ namespace OpenSim.Region.Framework.Scenes
1916 /// Get a part with a given local ID 1916 /// Get a part with a given local ID
1917 /// </summary> 1917 /// </summary>
1918 /// <param name="localID"></param> 1918 /// <param name="localID"></param>
1919 /// <returns>null if a child part with the local ID was not found</returns> 1919 /// <returns>null if a part with the local ID was not found</returns>
1920 public SceneObjectPart GetChildPart(uint localID) 1920 public SceneObjectPart GetPart(uint localID)
1921 { 1921 {
1922 SceneObjectPart[] parts = m_parts.GetArray(); 1922 SceneObjectPart[] parts = m_parts.GetArray();
1923 for (int i = 0; i < parts.Length; i++) 1923 for (int i = 0; i < parts.Length; i++)
@@ -2035,7 +2035,7 @@ namespace OpenSim.Region.Framework.Scenes
2035 /// <returns>The object group of the newly delinked prim. Null if part could not be found</returns> 2035 /// <returns>The object group of the newly delinked prim. Null if part could not be found</returns>
2036 public SceneObjectGroup DelinkFromGroup(uint partID, bool sendEvents) 2036 public SceneObjectGroup DelinkFromGroup(uint partID, bool sendEvents)
2037 { 2037 {
2038 SceneObjectPart linkPart = GetChildPart(partID); 2038 SceneObjectPart linkPart = GetPart(partID);
2039 2039
2040 if (linkPart != null) 2040 if (linkPart != null)
2041 { 2041 {
@@ -2326,7 +2326,7 @@ namespace OpenSim.Region.Framework.Scenes
2326 /// <param name="localID"></param> 2326 /// <param name="localID"></param>
2327 public void SetPartName(string name, uint localID) 2327 public void SetPartName(string name, uint localID)
2328 { 2328 {
2329 SceneObjectPart part = GetChildPart(localID); 2329 SceneObjectPart part = GetPart(localID);
2330 if (part != null) 2330 if (part != null)
2331 { 2331 {
2332 part.Name = name; 2332 part.Name = name;
@@ -2335,7 +2335,7 @@ namespace OpenSim.Region.Framework.Scenes
2335 2335
2336 public void SetPartDescription(string des, uint localID) 2336 public void SetPartDescription(string des, uint localID)
2337 { 2337 {
2338 SceneObjectPart part = GetChildPart(localID); 2338 SceneObjectPart part = GetPart(localID);
2339 if (part != null) 2339 if (part != null)
2340 { 2340 {
2341 part.Description = des; 2341 part.Description = des;
@@ -2344,7 +2344,7 @@ namespace OpenSim.Region.Framework.Scenes
2344 2344
2345 public void SetPartText(string text, uint localID) 2345 public void SetPartText(string text, uint localID)
2346 { 2346 {
2347 SceneObjectPart part = GetChildPart(localID); 2347 SceneObjectPart part = GetPart(localID);
2348 if (part != null) 2348 if (part != null)
2349 { 2349 {
2350 part.SetText(text); 2350 part.SetText(text);
@@ -2353,7 +2353,7 @@ namespace OpenSim.Region.Framework.Scenes
2353 2353
2354 public void SetPartText(string text, UUID partID) 2354 public void SetPartText(string text, UUID partID)
2355 { 2355 {
2356 SceneObjectPart part = GetChildPart(partID); 2356 SceneObjectPart part = GetPart(partID);
2357 if (part != null) 2357 if (part != null)
2358 { 2358 {
2359 part.SetText(text); 2359 part.SetText(text);
@@ -2362,7 +2362,7 @@ namespace OpenSim.Region.Framework.Scenes
2362 2362
2363 public string GetPartName(uint localID) 2363 public string GetPartName(uint localID)
2364 { 2364 {
2365 SceneObjectPart part = GetChildPart(localID); 2365 SceneObjectPart part = GetPart(localID);
2366 if (part != null) 2366 if (part != null)
2367 { 2367 {
2368 return part.Name; 2368 return part.Name;
@@ -2372,7 +2372,7 @@ namespace OpenSim.Region.Framework.Scenes
2372 2372
2373 public string GetPartDescription(uint localID) 2373 public string GetPartDescription(uint localID)
2374 { 2374 {
2375 SceneObjectPart part = GetChildPart(localID); 2375 SceneObjectPart part = GetPart(localID);
2376 if (part != null) 2376 if (part != null)
2377 { 2377 {
2378 return part.Description; 2378 return part.Description;
@@ -2390,7 +2390,7 @@ namespace OpenSim.Region.Framework.Scenes
2390 /// <param name="SetVolumeDetect"></param> 2390 /// <param name="SetVolumeDetect"></param>
2391 public void UpdatePrimFlags(uint localID, bool UsePhysics, bool SetTemporary, bool SetPhantom, bool SetVolumeDetect) 2391 public void UpdatePrimFlags(uint localID, bool UsePhysics, bool SetTemporary, bool SetPhantom, bool SetVolumeDetect)
2392 { 2392 {
2393 SceneObjectPart selectionPart = GetChildPart(localID); 2393 SceneObjectPart selectionPart = GetPart(localID);
2394 2394
2395 if (SetTemporary && Scene != null) 2395 if (SetTemporary && Scene != null)
2396 { 2396 {
@@ -2427,7 +2427,7 @@ namespace OpenSim.Region.Framework.Scenes
2427 2427
2428 public void UpdateExtraParam(uint localID, ushort type, bool inUse, byte[] data) 2428 public void UpdateExtraParam(uint localID, ushort type, bool inUse, byte[] data)
2429 { 2429 {
2430 SceneObjectPart part = GetChildPart(localID); 2430 SceneObjectPart part = GetPart(localID);
2431 if (part != null) 2431 if (part != null)
2432 { 2432 {
2433 part.UpdateExtraParam(type, inUse, data); 2433 part.UpdateExtraParam(type, inUse, data);
@@ -2441,7 +2441,7 @@ namespace OpenSim.Region.Framework.Scenes
2441 /// <param name="textureEntry"></param> 2441 /// <param name="textureEntry"></param>
2442 public void UpdateTextureEntry(uint localID, byte[] textureEntry) 2442 public void UpdateTextureEntry(uint localID, byte[] textureEntry)
2443 { 2443 {
2444 SceneObjectPart part = GetChildPart(localID); 2444 SceneObjectPart part = GetPart(localID);
2445 if (part != null) 2445 if (part != null)
2446 { 2446 {
2447 part.UpdateTextureEntry(textureEntry); 2447 part.UpdateTextureEntry(textureEntry);
@@ -2473,7 +2473,7 @@ namespace OpenSim.Region.Framework.Scenes
2473 /// <param name="shapeBlock"></param> 2473 /// <param name="shapeBlock"></param>
2474 public void UpdateShape(ObjectShapePacket.ObjectDataBlock shapeBlock, uint localID) 2474 public void UpdateShape(ObjectShapePacket.ObjectDataBlock shapeBlock, uint localID)
2475 { 2475 {
2476 SceneObjectPart part = GetChildPart(localID); 2476 SceneObjectPart part = GetPart(localID);
2477 if (part != null) 2477 if (part != null)
2478 { 2478 {
2479 part.UpdateShape(shapeBlock); 2479 part.UpdateShape(shapeBlock);
@@ -2685,7 +2685,7 @@ namespace OpenSim.Region.Framework.Scenes
2685 /// <param name="localID"></param> 2685 /// <param name="localID"></param>
2686 public void UpdateSinglePosition(Vector3 pos, uint localID) 2686 public void UpdateSinglePosition(Vector3 pos, uint localID)
2687 { 2687 {
2688 SceneObjectPart part = GetChildPart(localID); 2688 SceneObjectPart part = GetPart(localID);
2689 2689
2690// SceneObjectPart[] parts = m_parts.GetArray(); 2690// SceneObjectPart[] parts = m_parts.GetArray();
2691// for (int i = 0; i < parts.Length; i++) 2691// for (int i = 0; i < parts.Length; i++)
@@ -2824,7 +2824,7 @@ namespace OpenSim.Region.Framework.Scenes
2824 /// <param name="localID"></param> 2824 /// <param name="localID"></param>
2825 public void UpdateSingleRotation(Quaternion rot, uint localID) 2825 public void UpdateSingleRotation(Quaternion rot, uint localID)
2826 { 2826 {
2827 SceneObjectPart part = GetChildPart(localID); 2827 SceneObjectPart part = GetPart(localID);
2828 2828
2829 SceneObjectPart[] parts = m_parts.GetArray(); 2829 SceneObjectPart[] parts = m_parts.GetArray();
2830 for (int i = 0; i < parts.Length; i++) 2830 for (int i = 0; i < parts.Length; i++)
@@ -2853,7 +2853,7 @@ namespace OpenSim.Region.Framework.Scenes
2853 /// <param name="localID"></param> 2853 /// <param name="localID"></param>
2854 public void UpdateSingleRotation(Quaternion rot, Vector3 pos, uint localID) 2854 public void UpdateSingleRotation(Quaternion rot, Vector3 pos, uint localID)
2855 { 2855 {
2856 SceneObjectPart part = GetChildPart(localID); 2856 SceneObjectPart part = GetPart(localID);
2857 if (part != null) 2857 if (part != null)
2858 { 2858 {
2859// m_log.DebugFormat( 2859// m_log.DebugFormat(