mirror of
https://github.com/opensim/opensim.git
synced 2026-08-02 23:18:34 +08:00
* refactor: Convert most non SOP methods to use SOG.IsAttachment rather than SOP.IsAttachment
This commit is contained in:
@@ -2861,7 +2861,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
if (m_host.ParentGroup.RootPart.IsAttachment && (UUID)agent == m_host.ParentGroup.RootPart.AttachedAvatar)
|
||||
if (m_host.ParentGroup.IsAttachment && (UUID)agent == m_host.ParentGroup.RootPart.AttachedAvatar)
|
||||
{
|
||||
// When attached, certain permissions are implicit if requested from owner
|
||||
int implicitPerms = ScriptBaseClass.PERMISSION_TAKE_CONTROLS |
|
||||
|
||||
@@ -545,7 +545,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
{
|
||||
UUID appDomain = assetID;
|
||||
|
||||
if (part.ParentGroup.RootPart.IsAttachment)
|
||||
if (part.ParentGroup.IsAttachment)
|
||||
appDomain = part.ParentGroup.RootPart.UUID;
|
||||
|
||||
if (!m_AppDomains.ContainsKey(appDomain))
|
||||
|
||||
Reference in New Issue
Block a user