mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
Remove pointless cluttering SOP.ParentGroup != null checks.
The only times when ParentGroup might be null is during regression tests (which might not be a valid thing) and when scene objects are being constructed from the database. At all other times it's not possible for a SOP not to have a SOG parent.
This commit is contained in:
@@ -1131,7 +1131,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions
|
||||
SceneObjectPart part = scene.GetSceneObjectPart(objectID);
|
||||
if (part.OwnerID != moverID)
|
||||
{
|
||||
if (part.ParentGroup != null && !part.ParentGroup.IsDeleted)
|
||||
if (!part.ParentGroup.IsDeleted)
|
||||
{
|
||||
if (part.ParentGroup.IsAttachment)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user