aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
authorMelanie2012-08-23 23:09:32 +0200
committerMelanie2012-08-23 23:09:32 +0200
commitc1a0c7fad17bb2aead1539b61fe82fee16686190 (patch)
tree1f9b4318c25b61d5b5c11520b34630b1fb6a445d /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
parentMake terrain save every 1000 frames instead of every 50. Database load is a s... (diff)
downloadopensim-SC_OLD-c1a0c7fad17bb2aead1539b61fe82fee16686190.zip
opensim-SC_OLD-c1a0c7fad17bb2aead1539b61fe82fee16686190.tar.gz
opensim-SC_OLD-c1a0c7fad17bb2aead1539b61fe82fee16686190.tar.bz2
opensim-SC_OLD-c1a0c7fad17bb2aead1539b61fe82fee16686190.tar.xz
Fix bad child prim permissions that can make objects change perms after rezzing
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs18
1 files changed, 15 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index cb4aa2d..eee53d7 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -2852,6 +2852,9 @@ namespace OpenSim.Region.Framework.Scenes
2852 // Can't do this yet since backup still makes use of the root part without any synchronization 2852 // Can't do this yet since backup still makes use of the root part without any synchronization
2853// objectGroup.m_rootPart = null; 2853// objectGroup.m_rootPart = null;
2854 2854
2855 // If linking prims with different permissions, fix them
2856 AdjustChildPrimPermissions();
2857
2855 AttachToBackup(); 2858 AttachToBackup();
2856 2859
2857 // Here's the deal, this is ABSOLUTELY CRITICAL so the physics scene gets the update about the 2860 // Here's the deal, this is ABSOLUTELY CRITICAL so the physics scene gets the update about the
@@ -3391,12 +3394,21 @@ namespace OpenSim.Region.Framework.Scenes
3391 } 3394 }
3392 } 3395 }
3393 3396
3397 public void AdjustChildPrimPermissions()
3398 {
3399 ForEachPart(part =>
3400 {
3401 if (part != RootPart)
3402 part.ClonePermissions(RootPart);
3403 });
3404 }
3405
3394 public void UpdatePermissions(UUID AgentID, byte field, uint localID, 3406 public void UpdatePermissions(UUID AgentID, byte field, uint localID,
3395 uint mask, byte addRemTF) 3407 uint mask, byte addRemTF)
3396 { 3408 {
3397 SceneObjectPart[] parts = m_parts.GetArray(); 3409 RootPart.UpdatePermissions(AgentID, field, localID, mask, addRemTF);
3398 for (int i = 0; i < parts.Length; i++) 3410
3399 parts[i].UpdatePermissions(AgentID, field, localID, mask, addRemTF); 3411 AdjustChildPrimPermissions();
3400 3412
3401 HasGroupChanged = true; 3413 HasGroupChanged = true;
3402 3414