diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index ce652b4..ed626d0 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -4487,6 +4487,27 @@ namespace OpenSim.Region.Framework.Scenes | |||
4487 | } | 4487 | } |
4488 | } | 4488 | } |
4489 | 4489 | ||
4490 | public void ClonePermissions(SceneObjectPart source) | ||
4491 | { | ||
4492 | bool update = false; | ||
4493 | |||
4494 | if (BaseMask != source.BaseMask || | ||
4495 | OwnerMask != source.OwnerMask || | ||
4496 | GroupMask != source.GroupMask || | ||
4497 | EveryoneMask != source.EveryoneMask || | ||
4498 | NextOwnerMask != source.NextOwnerMask) | ||
4499 | update = true; | ||
4500 | |||
4501 | BaseMask = source.BaseMask; | ||
4502 | OwnerMask = source.OwnerMask; | ||
4503 | GroupMask = source.GroupMask; | ||
4504 | EveryoneMask = source.EveryoneMask; | ||
4505 | NextOwnerMask = source.NextOwnerMask; | ||
4506 | |||
4507 | if (update) | ||
4508 | SendFullUpdateToAllClients(); | ||
4509 | } | ||
4510 | |||
4490 | public bool IsHingeJoint() | 4511 | public bool IsHingeJoint() |
4491 | { | 4512 | { |
4492 | // For now, we use the NINJA naming scheme for identifying joints. | 4513 | // For now, we use the NINJA naming scheme for identifying joints. |