diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index cf3270d..539ca14 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1883,7 +1883,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1883 | { | 1883 | { |
1884 | AddRestoredSceneObject(group, true, true); | 1884 | AddRestoredSceneObject(group, true, true); |
1885 | EventManager.TriggerOnSceneObjectLoaded(group); | 1885 | EventManager.TriggerOnSceneObjectLoaded(group); |
1886 | SceneObjectPart rootPart = group.GetChildPart(group.UUID); | 1886 | SceneObjectPart rootPart = group.GetPart(group.UUID); |
1887 | rootPart.Flags &= ~PrimFlags.Scripted; | 1887 | rootPart.Flags &= ~PrimFlags.Scripted; |
1888 | rootPart.TrimPermissions(); | 1888 | rootPart.TrimPermissions(); |
1889 | 1889 | ||
@@ -2031,10 +2031,16 @@ namespace OpenSim.Region.Framework.Scenes | |||
2031 | if (Permissions.CanRezObject(1, ownerID, pos)) | 2031 | if (Permissions.CanRezObject(1, ownerID, pos)) |
2032 | { | 2032 | { |
2033 | // rez ON the ground, not IN the ground | 2033 | // rez ON the ground, not IN the ground |
2034 | // pos.Z += 0.25F; The rez point should now be correct so that its not in the ground | 2034 | // pos.Z += 0.25F; The rez point should now be correct so that its not in the ground |
2035 | 2035 | ||
2036 | AddNewPrim(ownerID, groupID, pos, rot, shape); | 2036 | AddNewPrim(ownerID, groupID, pos, rot, shape); |
2037 | } | 2037 | } |
2038 | else | ||
2039 | { | ||
2040 | IClientAPI client = null; | ||
2041 | if (TryGetClient(ownerID, out client)) | ||
2042 | client.SendAlertMessage("You cannot create objects here."); | ||
2043 | } | ||
2038 | } | 2044 | } |
2039 | 2045 | ||
2040 | public virtual SceneObjectGroup AddNewPrim( | 2046 | public virtual SceneObjectGroup AddNewPrim( |
@@ -4348,7 +4354,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
4348 | { | 4354 | { |
4349 | if (ent is SceneObjectGroup) | 4355 | if (ent is SceneObjectGroup) |
4350 | { | 4356 | { |
4351 | SceneObjectPart part = ((SceneObjectGroup)ent).GetChildPart(((SceneObjectGroup)ent).UUID); | 4357 | SceneObjectPart part = ((SceneObjectGroup)ent).GetPart(((SceneObjectGroup)ent).UUID); |
4352 | if (part != null) | 4358 | if (part != null) |
4353 | { | 4359 | { |
4354 | if (part.Name == cmdparams[2]) | 4360 | if (part.Name == cmdparams[2]) |