diff options
Merge branch 'avination' into careminster
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 af06250..4ed3413 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -4503,6 +4503,27 @@ namespace OpenSim.Region.Framework.Scenes | |||
4503 | } | 4503 | } |
4504 | } | 4504 | } |
4505 | 4505 | ||
4506 | public void ClonePermissions(SceneObjectPart source) | ||
4507 | { | ||
4508 | bool update = false; | ||
4509 | |||
4510 | if (BaseMask != source.BaseMask || | ||
4511 | OwnerMask != source.OwnerMask || | ||
4512 | GroupMask != source.GroupMask || | ||
4513 | EveryoneMask != source.EveryoneMask || | ||
4514 | NextOwnerMask != source.NextOwnerMask) | ||
4515 | update = true; | ||
4516 | |||
4517 | BaseMask = source.BaseMask; | ||
4518 | OwnerMask = source.OwnerMask; | ||
4519 | GroupMask = source.GroupMask; | ||
4520 | EveryoneMask = source.EveryoneMask; | ||
4521 | NextOwnerMask = source.NextOwnerMask; | ||
4522 | |||
4523 | if (update) | ||
4524 | SendFullUpdateToAllClients(); | ||
4525 | } | ||
4526 | |||
4506 | public bool IsHingeJoint() | 4527 | public bool IsHingeJoint() |
4507 | { | 4528 | { |
4508 | // For now, we use the NINJA naming scheme for identifying joints. | 4529 | // For now, we use the NINJA naming scheme for identifying joints. |