Partially implement notecard saves in task inventory. Still makes the
notecard go read-only, but changes are saved.0.6.0-stable
parent
5557fb9dd2
commit
82d79e3b0b
|
@ -168,8 +168,9 @@ namespace OpenSim.Framework.Communications.Capabilities
|
|||
m_capsHandlers["UpdateNotecardAgentInventory"] =
|
||||
new RestStreamHandler("POST", capsBase + m_notecardUpdatePath, NoteCardAgentInventory);
|
||||
m_capsHandlers["UpdateScriptAgentInventory"] = m_capsHandlers["UpdateNotecardAgentInventory"];
|
||||
m_capsHandlers["UpdateScriptTaskInventory"] =
|
||||
m_capsHandlers["UpdateNotecardTaskInventory"] =
|
||||
new RestStreamHandler("POST", capsBase + m_notecardTaskUpdatePath, ScriptTaskInventory);
|
||||
m_capsHandlers["UpdateScriptTaskInventory"] = m_capsHandlers["UpdateNotecardTaskInventory"];
|
||||
|
||||
// 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
|
||||
|
|
|
@ -254,10 +254,10 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
return;
|
||||
}
|
||||
|
||||
AssetBase asset = CreateAsset(item.Name, item.Description, (sbyte)AssetType.LSLText, data);
|
||||
AssetBase asset = CreateAsset(item.Name, item.Description, (sbyte)item.Type, data);
|
||||
AssetCache.AddAsset(asset);
|
||||
|
||||
if (isScriptRunning)
|
||||
if (isScriptRunning && item.Type == 10)
|
||||
{
|
||||
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)
|
||||
if (isScriptRunning && item.Type == 10)
|
||||
{
|
||||
part.CreateScriptInstance(item.ItemID, 0, false);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue