mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Formatting cleanup. Ignore some generated files.
This commit is contained in:
@@ -1526,14 +1526,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
return;
|
||||
|
||||
if (part.OwnerID != remoteClient.AgentId)
|
||||
{
|
||||
// Group permissions
|
||||
if ( (part.GroupID == UUID.Zero) || (remoteClient.GetGroupPowers(part.GroupID) == 0) || ((part.GroupMask & (uint)PermissionMask.Modify) == 0) )
|
||||
return;
|
||||
} else {
|
||||
if ((part.OwnerMask & (uint)PermissionMask.Modify) == 0)
|
||||
return;
|
||||
}
|
||||
{
|
||||
// Group permissions
|
||||
if ((part.GroupID == UUID.Zero) || (remoteClient.GetGroupPowers(part.GroupID) == 0) || ((part.GroupMask & (uint)PermissionMask.Modify) == 0))
|
||||
return;
|
||||
} else {
|
||||
if ((part.OwnerMask & (uint)PermissionMask.Modify) == 0)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Permissions.CanCreateObjectInventory(
|
||||
itemBase.InvType, part.UUID, remoteClient.AgentId))
|
||||
@@ -1602,18 +1602,18 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
destId);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Must own the object, and have modify rights
|
||||
if (srcPart.OwnerID != destPart.OwnerID)
|
||||
{
|
||||
// Group permissions
|
||||
if ( (destPart.GroupID == UUID.Zero) || (destPart.GroupID != srcPart.GroupID) ||
|
||||
((destPart.GroupMask & (uint)PermissionMask.Modify) == 0) )
|
||||
return;
|
||||
} else {
|
||||
if ((destPart.OwnerMask & (uint)PermissionMask.Modify) == 0)
|
||||
return;
|
||||
}
|
||||
{
|
||||
// Group permissions
|
||||
if ((destPart.GroupID == UUID.Zero) || (destPart.GroupID != srcPart.GroupID) ||
|
||||
((destPart.GroupMask & (uint)PermissionMask.Modify) == 0))
|
||||
return;
|
||||
} else {
|
||||
if ((destPart.OwnerMask & (uint)PermissionMask.Modify) == 0)
|
||||
return;
|
||||
}
|
||||
|
||||
if (destPart.ScriptAccessPin != pin)
|
||||
{
|
||||
|
||||
@@ -136,7 +136,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
m_AssetService = RequestModuleInterface<IAssetService>();
|
||||
|
||||
if( m_AssetService == null )
|
||||
if (m_AssetService == null)
|
||||
{
|
||||
throw new Exception("No IAssetService available.");
|
||||
}
|
||||
@@ -1097,7 +1097,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
IMessageTransferModule tr = RequestModuleInterface<IMessageTransferModule>();
|
||||
if (tr != null)
|
||||
tr.SendInstantMessage(msg, delegate(bool success) {} );
|
||||
tr.SendInstantMessage(msg, delegate(bool success) {});
|
||||
}
|
||||
m_returns.Clear();
|
||||
}
|
||||
@@ -1465,7 +1465,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
foreach (SceneObjectPart part in group.Children.Values)
|
||||
{
|
||||
if (part.IsJoint() && ((part.ObjectFlags&(uint)PrimFlags.Physics) != 0) )
|
||||
if (part.IsJoint() && ((part.ObjectFlags&(uint)PrimFlags.Physics) != 0))
|
||||
{
|
||||
PhysicsScene.RequestJointDeletion(part.Name); // FIXME: what if the name changed?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user