diff options
author | Justin Clark-Casey (justincc) | 2012-08-24 01:20:23 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-08-24 01:20:23 +0100 |
commit | 82b23f7cc1e98d5f1a541329a914df3ea648f44c (patch) | |
tree | f1a5bd8d62513df798b4acda634090c0e0ca5364 /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |
parent | Revert "implementing function to allow scripts to self-replicate as if the ow... (diff) | |
parent | Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff) | |
download | opensim-SC-82b23f7cc1e98d5f1a541329a914df3ea648f44c.zip opensim-SC-82b23f7cc1e98d5f1a541329a914df3ea648f44c.tar.gz opensim-SC-82b23f7cc1e98d5f1a541329a914df3ea648f44c.tar.bz2 opensim-SC-82b23f7cc1e98d5f1a541329a914df3ea648f44c.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to '')
-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 2a9ee3a..411dcc7 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -3890,6 +3890,27 @@ namespace OpenSim.Region.Framework.Scenes | |||
3890 | } | 3890 | } |
3891 | } | 3891 | } |
3892 | 3892 | ||
3893 | public void ClonePermissions(SceneObjectPart source) | ||
3894 | { | ||
3895 | bool update = false; | ||
3896 | |||
3897 | if (BaseMask != source.BaseMask || | ||
3898 | OwnerMask != source.OwnerMask || | ||
3899 | GroupMask != source.GroupMask || | ||
3900 | EveryoneMask != source.EveryoneMask || | ||
3901 | NextOwnerMask != source.NextOwnerMask) | ||
3902 | update = true; | ||
3903 | |||
3904 | BaseMask = source.BaseMask; | ||
3905 | OwnerMask = source.OwnerMask; | ||
3906 | GroupMask = source.GroupMask; | ||
3907 | EveryoneMask = source.EveryoneMask; | ||
3908 | NextOwnerMask = source.NextOwnerMask; | ||
3909 | |||
3910 | if (update) | ||
3911 | SendFullUpdateToAllClients(); | ||
3912 | } | ||
3913 | |||
3893 | public bool IsHingeJoint() | 3914 | public bool IsHingeJoint() |
3894 | { | 3915 | { |
3895 | // For now, we use the NINJA naming scheme for identifying joints. | 3916 | // For now, we use the NINJA naming scheme for identifying joints. |