diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs index d42c0550fb..a0c59ad1cc 100644 --- a/OpenSim/Framework/Communications/Capabilities/Caps.cs +++ b/OpenSim/Framework/Communications/Capabilities/Caps.cs @@ -170,8 +170,6 @@ namespace OpenSim.Framework.Communications.Capabilities m_capsHandlers["UpdateScriptAgentInventory"] = m_capsHandlers["UpdateNotecardAgentInventory"]; m_capsHandlers["UpdateScriptTaskInventory"] = new RestStreamHandler("POST", capsBase + m_notecardTaskUpdatePath, ScriptTaskInventory); - // LL doesn't offer this - // m_capsHandlers["UpdateNotecardTaskInventory"] = m_capsHandlers["UpdateScriptTaskInventory"]; // justincc: I've disabled the CAPS service for now to fix problems with selecting textures, and // subsequent inventory breakage, in the edit object pane (such as mantis 1085). This requires diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index f5ac0350e5..f575ecda83 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -254,10 +254,10 @@ namespace OpenSim.Region.Environment.Scenes return; } - AssetBase asset = CreateAsset(item.Name, item.Description, (sbyte)item.Type, data); + AssetBase asset = CreateAsset(item.Name, item.Description, (sbyte)AssetType.LSLText, data); AssetCache.AddAsset(asset); - if (isScriptRunning && item.Type == 10) + if (isScriptRunning) { part.RemoveScriptInstance(item.ItemID); } @@ -267,7 +267,7 @@ namespace OpenSim.Region.Environment.Scenes part.GetProperties(remoteClient); // Trigger rerunning of script (use TriggerRezScript event, see RezScript) - if (isScriptRunning && item.Type == 10) + if (isScriptRunning) { part.CreateScriptInstance(item.ItemID, 0, false); } @@ -1235,6 +1235,7 @@ namespace OpenSim.Region.Environment.Scenes else // Updating existing item with new perms etc { TaskInventoryItem prevItem = part.GetInventoryItem(itemID); +System.Console.WriteLine("Item asset {0}, request asset {1}", prevItem.AssetID.ToString(), itemInfo.AssetID.ToString()); itemInfo.AssetID = prevItem.AssetID; if (part.UpdateInventoryItem(itemInfo)) part.GetProperties(remoteClient);