mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
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:
@@ -3185,7 +3185,12 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
public void llAllowInventoryDrop(int add)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
NotImplemented("llAllowInventoryDrop");
|
||||
|
||||
if(add != 0)
|
||||
m_host.ParentGroup.RootPart.AllowedDrop = true;
|
||||
else
|
||||
m_host.ParentGroup.RootPart.AllowedDrop = false;
|
||||
|
||||
}
|
||||
|
||||
public LSL_Types.Vector3 llGetSunDirection()
|
||||
|
||||
@@ -3114,7 +3114,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
public void llAllowInventoryDrop(int add)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
NotImplemented("llAllowInventoryDrop");
|
||||
|
||||
if(add != 0)
|
||||
m_host.ParentGroup.RootPart.AllowedDrop = true;
|
||||
else
|
||||
m_host.ParentGroup.RootPart.AllowedDrop = false;
|
||||
}
|
||||
|
||||
public LSL_Types.Vector3 llGetSunDirection()
|
||||
|
||||
Reference in New Issue
Block a user