mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
* refactor: Convert most non SOP methods to use SOG.IsAttachment rather than SOP.IsAttachment
This commit is contained in:
@@ -611,7 +611,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
||||
{
|
||||
if (obj != null)
|
||||
{
|
||||
if ((obj is SceneObjectGroup) && ((SceneObjectGroup)obj).RootPart != null && !((SceneObjectGroup)obj).RootPart.IsAttachment)
|
||||
if ((obj is SceneObjectGroup) && !((SceneObjectGroup)obj).IsDeleted && !((SceneObjectGroup)obj).IsAttachment)
|
||||
{
|
||||
m_scene.EventManager.TriggerParcelPrimCountAdd((SceneObjectGroup)obj);
|
||||
}
|
||||
|
||||
@@ -757,10 +757,9 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
|
||||
SceneObjectPart part = scene.GetSceneObjectPart(objectID);
|
||||
if (part.OwnerID != moverID)
|
||||
{
|
||||
if (part.ParentGroup != null &&
|
||||
part.ParentGroup.RootPart != null)
|
||||
if (part.ParentGroup != null && !part.ParentGroup.IsDeleted)
|
||||
{
|
||||
if (part.ParentGroup.RootPart.IsAttachment)
|
||||
if (part.ParentGroup.IsAttachment)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user