From a2b1a1787d620f70c10221545414b41ffdfe27da Mon Sep 17 00:00:00 2001
From: Jeff Ames
Date: Wed, 25 Jun 2008 14:30:28 +0000
Subject: Minor formatting cleanup.
---
OpenSim/Region/Environment/Scenes/InnerScene.cs | 2 +-
.../Region/Environment/Scenes/Scene.Inventory.cs | 122 ++++++++++-----------
2 files changed, 62 insertions(+), 62 deletions(-)
(limited to 'OpenSim/Region/Environment/Scenes')
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs
index 5acad88..37da33d 100644
--- a/OpenSim/Region/Environment/Scenes/InnerScene.cs
+++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs
@@ -849,7 +849,7 @@ namespace OpenSim.Region.Environment.Scenes
///
protected internal List GetEntities()
{
- lock(Entities)
+ lock (Entities)
{
if (0 == Entities.Count) return null;
return new List(Entities.Values);
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
index d779dd7..b076855 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
@@ -918,7 +918,7 @@ namespace OpenSim.Region.Environment.Scenes
}
}
-
+
///
/// ClientMoveTaskInventoryItem
///
@@ -927,7 +927,7 @@ namespace OpenSim.Region.Environment.Scenes
///
///
public void ClientMoveTaskInventoryItem(IClientAPI remoteClient, LLUUID folderId, uint primLocalId, LLUUID itemId)
- {
+ {
SceneObjectPart part = GetSceneObjectPart(primLocalId);
if (null == part)
@@ -948,19 +948,19 @@ namespace OpenSim.Region.Environment.Scenes
return;
}
- MoveTaskInventoryItem(remoteClient, folderId, part, itemId);
- }
-
- ///
- /// MoveTaskInventoryItem
- ///
+ MoveTaskInventoryItem(remoteClient, folderId, part, itemId);
+ }
+
+ ///
+ /// MoveTaskInventoryItem
+ ///
///
///
///
///
- public void MoveTaskInventoryItem(LLUUID avatarId, LLUUID folderId, SceneObjectPart part, LLUUID itemId)
- {
- ScenePresence avatar;
+ public void MoveTaskInventoryItem(LLUUID avatarId, LLUUID folderId, SceneObjectPart part, LLUUID itemId)
+ {
+ ScenePresence avatar;
if (TryGetAvatar(avatarId, out avatar))
{
@@ -973,53 +973,53 @@ namespace OpenSim.Region.Environment.Scenes
"Avatar {0} cannot be found to update its prim item asset",
avatarId);
}
- }
-
- ///
- /// Copy a task (prim) inventory item to another task (prim)
- ///
- ///
- ///
- ///
+ }
+
+ ///
+ /// Copy a task (prim) inventory item to another task (prim)
+ ///
+ ///
+ ///
+ ///
public void MoveTaskInventoryItem(LLUUID destId, SceneObjectPart part, LLUUID itemId)
- {
- TaskInventoryItem srcTaskItem = part.GetInventoryItem(itemId);
-
- if(srcTaskItem == null)
- {
- // error was already logged
- return;
- }
-
- SceneObjectPart destPart = GetSceneObjectPart(destId);
-
- if(destPart == null)
- {
- m_log.ErrorFormat(
- "[PRIM INVENTORY]: " +
- "Could not find prim for ID {0}",
- destId);
- return;
- }
-
- TaskInventoryItem destTaskItem = new TaskInventoryItem();
-
- destTaskItem.ItemID = LLUUID.Random();
- destTaskItem.CreatorID = srcTaskItem.CreatorID;
- destTaskItem.AssetID = srcTaskItem.AssetID;
+ {
+ TaskInventoryItem srcTaskItem = part.GetInventoryItem(itemId);
+
+ if (srcTaskItem == null)
+ {
+ // error was already logged
+ return;
+ }
+
+ SceneObjectPart destPart = GetSceneObjectPart(destId);
+
+ if (destPart == null)
+ {
+ m_log.ErrorFormat(
+ "[PRIM INVENTORY]: " +
+ "Could not find prim for ID {0}",
+ destId);
+ return;
+ }
+
+ TaskInventoryItem destTaskItem = new TaskInventoryItem();
+
+ destTaskItem.ItemID = LLUUID.Random();
+ destTaskItem.CreatorID = srcTaskItem.CreatorID;
+ destTaskItem.AssetID = srcTaskItem.AssetID;
destTaskItem.GroupID = destPart.GroupID;
destTaskItem.OwnerID = destPart.OwnerID;
destTaskItem.ParentID = destPart.UUID;
destTaskItem.ParentPartID = destPart.UUID;
- destTaskItem.BaseMask = srcTaskItem.BaseMask;
- destTaskItem.EveryoneMask = srcTaskItem.EveryoneMask;
- destTaskItem.GroupMask = srcTaskItem.GroupMask;
- destTaskItem.OwnerMask = srcTaskItem.OwnerMask;
+ destTaskItem.BaseMask = srcTaskItem.BaseMask;
+ destTaskItem.EveryoneMask = srcTaskItem.EveryoneMask;
+ destTaskItem.GroupMask = srcTaskItem.GroupMask;
+ destTaskItem.OwnerMask = srcTaskItem.OwnerMask;
destTaskItem.NextOwnerMask = srcTaskItem.NextOwnerMask;
- destTaskItem.Flags = srcTaskItem.Flags;
-
- if(destPart.OwnerID != part.OwnerID)
+ destTaskItem.Flags = srcTaskItem.Flags;
+
+ if (destPart.OwnerID != part.OwnerID)
{
if (ExternalChecks.ExternalChecksPropagatePermissions())
{
@@ -1035,18 +1035,18 @@ namespace OpenSim.Region.Environment.Scenes
}
}
- destTaskItem.Description = srcTaskItem.Description;
- destTaskItem.Name = srcTaskItem.Name;
- destTaskItem.InvType = srcTaskItem.InvType;
- destTaskItem.Type = srcTaskItem.Type;
-
- destPart.AddInventoryItem(destTaskItem);
+ destTaskItem.Description = srcTaskItem.Description;
+ destTaskItem.Name = srcTaskItem.Name;
+ destTaskItem.InvType = srcTaskItem.InvType;
+ destTaskItem.Type = srcTaskItem.Type;
+
+ destPart.AddInventoryItem(destTaskItem);
- if((srcTaskItem.OwnerMask & (uint)PermissionMask.Copy) == 0)
+ if ((srcTaskItem.OwnerMask & (uint)PermissionMask.Copy) == 0)
part.RemoveInventoryItem(itemId);
-
- }
-
+
+ }
+
///
/// Update an item in a prim (task) inventory.
/// This method does not handle scripts, RezScript(IClientAPI, LLUUID, unit)
--
cgit v1.1