mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Automatically grant sit-related llRequestPermissions() for subsequent avatars sitting on the same scene obejct, instead of wrongly popping up request permissions dialog.
Resolves http://opensimulator.org/mantis/view.php?id=6478
This commit is contained in:
@@ -3412,21 +3412,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
bool sitting = false;
|
if (m_host.ParentGroup.GetSittingAvatars().Contains(agentID)
|
||||||
if (m_host.SitTargetAvatar == agentID)
|
|
||||||
{
|
|
||||||
sitting = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
foreach (SceneObjectPart p in m_host.ParentGroup.Parts)
|
|
||||||
{
|
|
||||||
if (p.SitTargetAvatar == agentID)
|
|
||||||
sitting = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sitting)
|
|
||||||
{
|
{
|
||||||
// When agent is sitting, certain permissions are implicit if requested from sitting agent
|
// When agent is sitting, certain permissions are implicit if requested from sitting agent
|
||||||
implicitPerms = ScriptBaseClass.PERMISSION_TRIGGER_ANIMATION |
|
implicitPerms = ScriptBaseClass.PERMISSION_TRIGGER_ANIMATION |
|
||||||
|
|||||||
Reference in New Issue
Block a user