If a prim is persisted in the region, scripts dragged into its inventory after a server restart would not appear (though the script they contain would still be invoked). This
change fixes that problem.afrisby
parent
f852b64555
commit
01de4bbfbd
|
@ -499,7 +499,8 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Update an item in a prim (task) inventory
|
||||
/// Update an item in a prim (task) inventory.
|
||||
/// This method does not handle scripts, <see>RezScript(IClientAPI, LLUUID, unit)</see>
|
||||
/// </summary>
|
||||
/// <param name="remoteClient"></param>
|
||||
/// <param name="itemID"></param>
|
||||
|
|
|
@ -1152,6 +1152,13 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
{
|
||||
return part.GetInventoryFileName(remoteClient, localID);
|
||||
}
|
||||
else
|
||||
{
|
||||
MainLog.Instance.Warn(
|
||||
"SCENE",
|
||||
"Couldn't find part {0} in object group {1} ({2}) to retreive prim inventory",
|
||||
localID, LocalId, UUID);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -420,10 +420,12 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// No arg constructor called by region restore db code
|
||||
/// </summary>
|
||||
public SceneObjectPart()
|
||||
{
|
||||
// It's not necessary to persist this
|
||||
m_inventoryFileName = "taskinventory" + LLUUID.Random().ToString();
|
||||
}
|
||||
|
||||
public SceneObjectPart(ulong regionHandle, SceneObjectGroup parent, LLUUID ownerID, uint localID,
|
||||
|
@ -1006,8 +1008,8 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
/// <param name="localID"></param>
|
||||
public bool GetInventoryFileName(IClientAPI client, uint localID)
|
||||
{
|
||||
if (localID == m_localID)
|
||||
{
|
||||
// if (localID == m_localID)
|
||||
// {
|
||||
if (m_inventorySerial > 0)
|
||||
{
|
||||
client.SendTaskInventory(m_uuid, (short)m_inventorySerial,
|
||||
|
@ -1019,7 +1021,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
client.SendTaskInventory(m_uuid, 0, new byte[0]);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// }
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue