aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
authorTeravus Ovares2008-04-28 01:48:21 +0000
committerTeravus Ovares2008-04-28 01:48:21 +0000
commit1fb54b074c243bab1964b4a568d672e87d18655f (patch)
tree1a9a113d09b94a10e5113e1b2e613039029d52a7 /OpenSim/Region/ClientStack
parent* Added String(FileExtension) property to ITerrainLoader to allow us to deter... (diff)
downloadopensim-SC-1fb54b074c243bab1964b4a568d672e87d18655f.zip
opensim-SC-1fb54b074c243bab1964b4a568d672e87d18655f.tar.gz
opensim-SC-1fb54b074c243bab1964b4a568d672e87d18655f.tar.bz2
opensim-SC-1fb54b074c243bab1964b4a568d672e87d18655f.tar.xz
* Added basic 3-5 level undo on prim position/rotation/scale.
* In the future this should be a config option... and, hopefully this tides the builders over for a little while.
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs
index 94de013..aac96d1 100644
--- a/OpenSim/Region/ClientStack/ClientView.cs
+++ b/OpenSim/Region/ClientStack/ClientView.cs
@@ -238,6 +238,7 @@ namespace OpenSim.Region.ClientStack
238 private ScriptAnswer handlerScriptAnswer = null; 238 private ScriptAnswer handlerScriptAnswer = null;
239 private RequestPayPrice handlerRequestPayPrice = null; 239 private RequestPayPrice handlerRequestPayPrice = null;
240 private ObjectDeselect handlerObjectDetach = null; 240 private ObjectDeselect handlerObjectDetach = null;
241 private AgentSit handlerOnUndo = null;
241 242
242 /* Properties */ 243 /* Properties */
243 244
@@ -799,6 +800,7 @@ namespace OpenSim.Region.ClientStack
799 800
800 public event ScriptAnswer OnScriptAnswer; 801 public event ScriptAnswer OnScriptAnswer;
801 public event RequestPayPrice OnRequestPayPrice; 802 public event RequestPayPrice OnRequestPayPrice;
803 public event AgentSit OnUndo;
802 804
803 #region Scene/Avatar to Client 805 #region Scene/Avatar to Client
804 806
@@ -3884,6 +3886,23 @@ namespace OpenSim.Region.ClientStack
3884 // That means multiple object perms may be updated in a single packet. 3886 // That means multiple object perms may be updated in a single packet.
3885 3887
3886 break; 3888 break;
3889
3890 case PacketType.Undo:
3891 UndoPacket undoitem = (UndoPacket)Pack;
3892 if (undoitem.ObjectData.Length > 0)
3893 {
3894 for (int i = 0; i < undoitem.ObjectData.Length; i++)
3895 {
3896 LLUUID objiD = undoitem.ObjectData[i].ObjectID;
3897 handlerOnUndo = OnUndo;
3898 if (handlerOnUndo != null)
3899 {
3900 handlerOnUndo(this, objiD);
3901 }
3902
3903 }
3904 }
3905 break;
3887 case PacketType.ObjectDuplicateOnRay: 3906 case PacketType.ObjectDuplicateOnRay:
3888 ObjectDuplicateOnRayPacket dupeOnRay = (ObjectDuplicateOnRayPacket)Pack; 3907 ObjectDuplicateOnRayPacket dupeOnRay = (ObjectDuplicateOnRayPacket)Pack;
3889 3908