mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
Reapplying a revised version of Christopher Yeoh's (IBM) patch for allow
inventory drop. Also adds a new flags, "propagate_permissions" to OpenSim.ini to control that feature.
This commit is contained in:
@@ -4006,6 +4006,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
m_host.ParentGroup.RootPart.AllowedDrop = true;
|
||||
else
|
||||
m_host.ParentGroup.RootPart.AllowedDrop = false;
|
||||
|
||||
// Update the object flags
|
||||
m_host.ParentGroup.RootPart.aggregateScriptEvents();
|
||||
}
|
||||
|
||||
public LSL_Vector llGetSunDirection()
|
||||
|
||||
@@ -1014,7 +1014,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
taskItem.PermsMask = 0;
|
||||
taskItem.AssetID = asset.FullID;
|
||||
|
||||
m_host.AddInventoryItem(taskItem);
|
||||
m_host.AddInventoryItem(taskItem, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user