Mantis#1610. Thank you, Melanie for a patch that:

Implements the beginning of llInventoryDrop. Doesn't cover 
the actual dropping yet, just the permissions for it.
This commit is contained in:
Charles Krinke
2008-06-26 23:37:21 +00:00
parent 751150100b
commit 176efe3f06
4 changed files with 18 additions and 4 deletions

View File

@@ -97,6 +97,7 @@ namespace OpenSim.Region.Environment.Scenes
// TODO: This needs to be persisted in next XML version update!
[XmlIgnore] public int[] PayPrice = {-2,-2,-2,-2,-2};
[XmlIgnore] public bool AllowedDrop = false;
[XmlIgnore] private Dictionary<LLUUID, scriptEvents> m_scriptEvents = new Dictionary<LLUUID, scriptEvents>();
[XmlIgnore] public scriptEvents m_aggregateScriptEvents=0;
[XmlIgnore] private LLObject.ObjectFlags LocalFlags = LLObject.ObjectFlags.None;
@@ -2786,6 +2787,11 @@ namespace OpenSim.Region.Environment.Scenes
objectflagupdate |= (uint) LLObject.ObjectFlags.Money;
}
if (AllowedDrop)
{
objectflagupdate |= (uint) LLObject.ObjectFlags.AllowInventoryDrop;
}
if (
((m_aggregateScriptEvents & scriptEvents.collision) != 0) ||
((m_aggregateScriptEvents & scriptEvents.collision_end) != 0) ||