From 001d5a5c923899b036c8135f9031867f8a431d5b Mon Sep 17 00:00:00 2001
From: MW
Date: Wed, 22 Aug 2007 17:40:26 +0000
Subject: Made SceneObjectGroup.GetChildPrim() public, for now so that script
engine can get ref to the SceneObjectPart/ IScriptHost.
---
.../Region/Environment/Scenes/SceneObjectGroup.cs | 38 +++++++++++-----------
.../Region/Environment/Scenes/SceneObjectPart.cs | 2 +-
2 files changed, 20 insertions(+), 20 deletions(-)
(limited to 'OpenSim/Region/Environment/Scenes')
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 99bdda9..c50809f 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -362,7 +362,7 @@ namespace OpenSim.Region.Environment.Scenes
///
///
///
- private SceneObjectPart GetChildPrim(LLUUID primID)
+ public SceneObjectPart GetChildPart(LLUUID primID)
{
SceneObjectPart childPart = null;
if (this.m_parts.ContainsKey(primID))
@@ -377,7 +377,7 @@ namespace OpenSim.Region.Environment.Scenes
///
///
///
- private SceneObjectPart GetChildPrim(uint localID)
+ public SceneObjectPart GetChildPart(uint localID)
{
foreach (SceneObjectPart part in this.m_parts.Values)
{
@@ -543,7 +543,7 @@ namespace OpenSim.Region.Environment.Scenes
///
public void SetPartName(string name, uint localID)
{
- SceneObjectPart part = this.GetChildPrim(localID);
+ SceneObjectPart part = this.GetChildPart(localID);
if (part != null)
{
part.Name = name;
@@ -552,7 +552,7 @@ namespace OpenSim.Region.Environment.Scenes
public void SetPartDescription(string des, uint localID)
{
- SceneObjectPart part = this.GetChildPrim(localID);
+ SceneObjectPart part = this.GetChildPart(localID);
if (part != null)
{
part.Description = des;
@@ -561,7 +561,7 @@ namespace OpenSim.Region.Environment.Scenes
public void SetPartText(string text, uint localID)
{
- SceneObjectPart part = this.GetChildPrim(localID);
+ SceneObjectPart part = this.GetChildPart(localID);
if (part != null)
{
part.Text = text;
@@ -570,7 +570,7 @@ namespace OpenSim.Region.Environment.Scenes
public void SetPartText(string text, LLUUID partID)
{
- SceneObjectPart part = this.GetChildPrim(partID);
+ SceneObjectPart part = this.GetChildPart(partID);
if (part != null)
{
part.Text = text;
@@ -579,7 +579,7 @@ namespace OpenSim.Region.Environment.Scenes
public string GetPartName(uint localID)
{
- SceneObjectPart part = this.GetChildPrim(localID);
+ SceneObjectPart part = this.GetChildPart(localID);
if (part != null)
{
return part.Name;
@@ -589,7 +589,7 @@ namespace OpenSim.Region.Environment.Scenes
public string GetPartDescription(uint localID)
{
- SceneObjectPart part = this.GetChildPrim(localID);
+ SceneObjectPart part = this.GetChildPart(localID);
if (part != null)
{
return part.Description;
@@ -604,7 +604,7 @@ namespace OpenSim.Region.Environment.Scenes
///
public bool GetPartInventoryFileName(IClientAPI remoteClient, uint localID)
{
- SceneObjectPart part = this.GetChildPrim(localID);
+ SceneObjectPart part = this.GetChildPart(localID);
if (part != null)
{
return part.GetInventoryFileName(remoteClient, localID);
@@ -614,7 +614,7 @@ namespace OpenSim.Region.Environment.Scenes
public string RequestInventoryFile(uint localID, XferManager xferManager)
{
- SceneObjectPart part = this.GetChildPrim(localID);
+ SceneObjectPart part = this.GetChildPart(localID);
if (part != null)
{
return part.RequestInventoryFile(xferManager);
@@ -624,7 +624,7 @@ namespace OpenSim.Region.Environment.Scenes
public bool AddInventoryItem(IClientAPI remoteClient, uint localID, InventoryItemBase item)
{
- SceneObjectPart part = this.GetChildPrim(localID);
+ SceneObjectPart part = this.GetChildPart(localID);
if (part != null)
{
SceneObjectPart.TaskInventoryItem taskItem = new SceneObjectPart.TaskInventoryItem();
@@ -652,7 +652,7 @@ namespace OpenSim.Region.Environment.Scenes
///
public void UpdateExtraParam(uint localID, ushort type, bool inUse, byte[] data)
{
- SceneObjectPart part = this.GetChildPrim(localID);
+ SceneObjectPart part = this.GetChildPart(localID);
if (part != null)
{
part.UpdateExtraParam(type, inUse, data);
@@ -666,7 +666,7 @@ namespace OpenSim.Region.Environment.Scenes
///
public void UpdateTextureEntry(uint localID, byte[] textureEntry)
{
- SceneObjectPart part = this.GetChildPrim(localID);
+ SceneObjectPart part = this.GetChildPart(localID);
if (part != null)
{
part.UpdateTextureEntry(textureEntry);
@@ -681,7 +681,7 @@ namespace OpenSim.Region.Environment.Scenes
///
public void UpdateShape(ObjectShapePacket.ObjectDataBlock shapeBlock, uint localID)
{
- SceneObjectPart part = this.GetChildPrim(localID);
+ SceneObjectPart part = this.GetChildPart(localID);
if (part != null)
{
part.UpdateShape(shapeBlock);
@@ -697,7 +697,7 @@ namespace OpenSim.Region.Environment.Scenes
///
public void Resize(LLVector3 scale, uint localID)
{
- SceneObjectPart part = this.GetChildPrim(localID);
+ SceneObjectPart part = this.GetChildPart(localID);
if (part != null)
{
part.Resize(scale);
@@ -723,7 +723,7 @@ namespace OpenSim.Region.Environment.Scenes
///
public void UpdateSinglePosition(LLVector3 pos, uint localID)
{
- SceneObjectPart part = this.GetChildPrim(localID);
+ SceneObjectPart part = this.GetChildPart(localID);
if (part != null)
{
if (part.UUID == this.m_rootPart.UUID)
@@ -795,7 +795,7 @@ namespace OpenSim.Region.Environment.Scenes
///
public void UpdateSingleRotation(LLQuaternion rot, uint localID)
{
- SceneObjectPart part = this.GetChildPrim(localID);
+ SceneObjectPart part = this.GetChildPart(localID);
if (part != null)
{
if (part.UUID == this.m_rootPart.UUID)
@@ -987,7 +987,7 @@ namespace OpenSim.Region.Environment.Scenes
public LLUUID GetPartsFullID(uint localID)
{
- SceneObjectPart part = this.GetChildPrim(localID);
+ SceneObjectPart part = this.GetChildPart(localID);
if (part != null)
{
return part.UUID;
@@ -1009,7 +1009,7 @@ namespace OpenSim.Region.Environment.Scenes
}
else
{
- SceneObjectPart part = GetChildPrim(localId);
+ SceneObjectPart part = GetChildPart(localId);
OnGrabPart(part, offsetPos, remoteClient);
}
}
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index 7684b4f..8a59d88 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -238,7 +238,7 @@ namespace OpenSim.Region.Environment.Scenes
m_inventoryFileName = "taskinventory" + LLUUID.Random().ToString();
m_folderID = LLUUID.Random();
-
+
//temporary code just so the m_flags field doesn't give a compiler warning
if (m_flags == LLObject.ObjectFlags.AllowInventoryDrop)
{
--
cgit v1.1