diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 526c125..43bb709 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -1492,7 +1492,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1492 | { | 1492 | { |
1493 | SceneObjectGroup sceneOb = | 1493 | SceneObjectGroup sceneOb = |
1494 | new SceneObjectGroup(this, m_regionHandle, ownerID, PrimIDAllocate(), pos, rot, shape); | 1494 | new SceneObjectGroup(this, m_regionHandle, ownerID, PrimIDAllocate(), pos, rot, shape); |
1495 | AddSceneObject(sceneOb); | 1495 | AddSceneObject(sceneOb, true); |
1496 | SceneObjectPart rootPart = sceneOb.GetChildPart(sceneOb.UUID); | 1496 | SceneObjectPart rootPart = sceneOb.GetChildPart(sceneOb.UUID); |
1497 | // if grass or tree, make phantom | 1497 | // if grass or tree, make phantom |
1498 | //rootPart.TrimPermissions(); | 1498 | //rootPart.TrimPermissions(); |
@@ -1556,9 +1556,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
1556 | /// Add an object to the scene | 1556 | /// Add an object to the scene |
1557 | /// </summary> | 1557 | /// </summary> |
1558 | /// <param name="sceneObject"></param> | 1558 | /// <param name="sceneObject"></param> |
1559 | public void AddSceneObject(SceneObjectGroup sceneObject) | 1559 | /// <param name="attachToBackup"> |
1560 | /// If true, the object is made persistent into the scene. | ||
1561 | /// If false, the object will not persist over server restarts | ||
1562 | /// </param> | ||
1563 | public void AddSceneObject(SceneObjectGroup sceneObject, bool attachToBackup) | ||
1560 | { | 1564 | { |
1561 | m_innerScene.AddSceneObject(sceneObject); | 1565 | m_innerScene.AddSceneObject(sceneObject, attachToBackup); |
1562 | } | 1566 | } |
1563 | 1567 | ||
1564 | /// <summary> | 1568 | /// <summary> |