mirror of
https://github.com/opensim/opensim.git
synced 2026-07-13 19:14:51 +08:00
* refactor: Rip out SOP inventory from the partial into a separate class
* SceneObjectPartInventory.cs isn't a particularly good name but it's probably not got a long life * A proper inventory interface to follow * Parallel changes for other inventory partial classes to follow at a later date
This commit is contained in:
@@ -3320,7 +3320,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
if (item.Name == name)
|
||||
{
|
||||
m_host.RemoveInventoryItem(item.ItemID);
|
||||
m_host.Inventory.RemoveInventoryItem(item.ItemID);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1032,7 +1032,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
taskItem.PermsMask = 0;
|
||||
taskItem.AssetID = asset.FullID;
|
||||
|
||||
m_host.AddInventoryItem(taskItem, false);
|
||||
m_host.Inventory.AddInventoryItem(taskItem, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -302,7 +302,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
|
||||
if (part.AttachmentPoint != 0) // Attached so ignore
|
||||
continue;
|
||||
|
||||
if (part.ContainsScripts())
|
||||
if (part.Inventory.ContainsScripts())
|
||||
{
|
||||
objtype |= ACTIVE | SCRIPTED; // Scripted and active. It COULD have one hidden ...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user