mirror of
https://github.com/opensim/opensim.git
synced 2026-05-17 20:25:34 +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:
@@ -570,15 +570,14 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
public void ResetScript(uint localID, UUID itemID)
|
||||
{
|
||||
InstanceData id = GetScript(localID, itemID);
|
||||
string script = id.Source;
|
||||
StopScript(localID, itemID);
|
||||
SceneObjectPart part = World.GetSceneObjectPart(localID);
|
||||
part.GetInventoryItem(itemID).PermsMask = 0;
|
||||
part.GetInventoryItem(itemID).PermsGranter = UUID.Zero;
|
||||
part.Inventory.GetInventoryItem(itemID).PermsMask = 0;
|
||||
part.Inventory.GetInventoryItem(itemID).PermsGranter = UUID.Zero;
|
||||
StartScript(localID, itemID, script, id.StartParam, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user