aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-09-27 00:12:34 +0100
committerJustin Clark-Casey (justincc)2012-09-27 00:12:34 +0100
commit2bf42f30af5030890b8e3ff5bb29074a1f0e9085 (patch)
tree5aeb7aeb87231e97e8cec78aa1dac0fbf7b4fc72 /OpenSim/Region/Framework/Scenes/Scene.cs
parentDon't store undo states if a scene object is manipulated when it is not in a ... (diff)
downloadopensim-SC_OLD-2bf42f30af5030890b8e3ff5bb29074a1f0e9085.zip
opensim-SC_OLD-2bf42f30af5030890b8e3ff5bb29074a1f0e9085.tar.gz
opensim-SC_OLD-2bf42f30af5030890b8e3ff5bb29074a1f0e9085.tar.bz2
opensim-SC_OLD-2bf42f30af5030890b8e3ff5bb29074a1f0e9085.tar.xz
Add MaxPrimsUndo config setting to [Startup] section of OpenSim.ini.
This controls how many undo steps the simulator will store for each prim. Default is now 20 rather than 5 as it briefly was. The default number could be increased through this is a memory tradeoff which will scale with the number of prims in the sim and level of activity.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 872c061..2e03874 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -742,6 +742,8 @@ namespace OpenSim.Region.Framework.Scenes
742 //Animation states 742 //Animation states
743 m_useFlySlow = startupConfig.GetBoolean("enableflyslow", false); 743 m_useFlySlow = startupConfig.GetBoolean("enableflyslow", false);
744 744
745 MaxUndoCount = startupConfig.GetInt("MaxPrimUndos", 20);
746
745 PhysicalPrims = startupConfig.GetBoolean("physical_prim", PhysicalPrims); 747 PhysicalPrims = startupConfig.GetBoolean("physical_prim", PhysicalPrims);
746 CollidablePrims = startupConfig.GetBoolean("collidable_prim", CollidablePrims); 748 CollidablePrims = startupConfig.GetBoolean("collidable_prim", CollidablePrims);
747 749
@@ -932,9 +934,6 @@ namespace OpenSim.Region.Framework.Scenes
932 WestBorders.Add(westBorder); 934 WestBorders.Add(westBorder);
933 BordersLocked = false; 935 BordersLocked = false;
934 936
935 // TODO: At some point this should be made configurable.
936 MaxUndoCount = 5;
937
938 m_eventManager = new EventManager(); 937 m_eventManager = new EventManager();
939 938
940 m_permissions = new ScenePermissions(this); 939 m_permissions = new ScenePermissions(this);