diff options
author | Mic Bowman | 2012-04-25 11:54:57 -0700 |
---|---|---|
committer | Mic Bowman | 2012-04-25 11:54:57 -0700 |
commit | a2d544c9383391f483bdfb82026e2ebc9c88388f (patch) | |
tree | 3d9c949f2ca24ac02b03b3b916001b7e2813dfaf | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-a2d544c9383391f483bdfb82026e2ebc9c88388f.zip opensim-SC_OLD-a2d544c9383391f483bdfb82026e2ebc9c88388f.tar.gz opensim-SC_OLD-a2d544c9383391f483bdfb82026e2ebc9c88388f.tar.bz2 opensim-SC_OLD-a2d544c9383391f483bdfb82026e2ebc9c88388f.tar.xz |
Add a configuration switch to turn on/off the use of the trash
folder when deleting objects from a scene. The use of the trash
folder causes assets to be created and stored everytime you delete
an object from the scene (slows down the delete and adds mostly useless
assets to your database).
Default is on (use the trash folder) which is the standard behavior.
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 2 | ||||
-rw-r--r-- | bin/OpenSimDefaults.ini | 7 |
3 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 10b25ed..816d3b6 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -1988,7 +1988,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1988 | } | 1988 | } |
1989 | } | 1989 | } |
1990 | 1990 | ||
1991 | if (permissionToTake) | 1991 | if (permissionToTake && (action != DeRezAction.Delete || this.m_useTrashOnDelete)) |
1992 | { | 1992 | { |
1993 | m_asyncSceneObjectDeleter.DeleteToInventory( | 1993 | m_asyncSceneObjectDeleter.DeleteToInventory( |
1994 | action, destinationID, deleteGroups, remoteClient, | 1994 | action, destinationID, deleteGroups, remoteClient, |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index a87dfb7..7a2b2ed 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -103,6 +103,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
103 | public bool m_trustBinaries; | 103 | public bool m_trustBinaries; |
104 | public bool m_allowScriptCrossings; | 104 | public bool m_allowScriptCrossings; |
105 | public bool m_useFlySlow; | 105 | public bool m_useFlySlow; |
106 | public bool m_useTrashOnDelete = true; | ||
106 | 107 | ||
107 | /// <summary> | 108 | /// <summary> |
108 | /// Temporarily setting to trigger appearance resends at 60 second intervals. | 109 | /// Temporarily setting to trigger appearance resends at 60 second intervals. |
@@ -709,6 +710,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
709 | m_clampPrimSize = true; | 710 | m_clampPrimSize = true; |
710 | } | 711 | } |
711 | 712 | ||
713 | m_useTrashOnDelete = startupConfig.GetBoolean("UseTrashOnDelete",m_useTrashOnDelete); | ||
712 | m_trustBinaries = startupConfig.GetBoolean("TrustBinaries", m_trustBinaries); | 714 | m_trustBinaries = startupConfig.GetBoolean("TrustBinaries", m_trustBinaries); |
713 | m_allowScriptCrossings = startupConfig.GetBoolean("AllowScriptCrossing", m_allowScriptCrossings); | 715 | m_allowScriptCrossings = startupConfig.GetBoolean("AllowScriptCrossing", m_allowScriptCrossings); |
714 | m_dontPersistBefore = | 716 | m_dontPersistBefore = |
diff --git a/bin/OpenSimDefaults.ini b/bin/OpenSimDefaults.ini index 3f2f131..cb9ef22 100644 --- a/bin/OpenSimDefaults.ini +++ b/bin/OpenSimDefaults.ini | |||
@@ -337,6 +337,13 @@ | |||
337 | ; OpenJPEG if false | 337 | ; OpenJPEG if false |
338 | ; UseCSJ2K = true | 338 | ; UseCSJ2K = true |
339 | 339 | ||
340 | |||
341 | ; Use "Trash" folder for items deleted from the scene | ||
342 | ; When set to True (the default) items deleted from the scene will be | ||
343 | ; stored in the user's trash or lost and found folder. When set to | ||
344 | ; False items will be removed from the scene permanently | ||
345 | UseTrashOnDelete = True | ||
346 | |||
340 | ; Persist avatar baked textures | 347 | ; Persist avatar baked textures |
341 | ; Persisting baked textures can speed up login and region border | 348 | ; Persisting baked textures can speed up login and region border |
342 | ; crossings especially with large numbers of users, though it | 349 | ; crossings especially with large numbers of users, though it |