diff options
author | Justin Clark-Casey (justincc) | 2012-11-09 00:59:18 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-11-09 01:13:19 +0000 |
commit | 75c880a6f3631a527b532773a8a493309a96028e (patch) | |
tree | d07023ef4a277420b66f3b144df3be1287c26d92 /OpenSim/Data/IXInventoryData.cs | |
parent | ODECharacter overrides TargetVelocity. No change to existing behavior (diff) | |
download | opensim-SC_OLD-75c880a6f3631a527b532773a8a493309a96028e.zip opensim-SC_OLD-75c880a6f3631a527b532773a8a493309a96028e.tar.gz opensim-SC_OLD-75c880a6f3631a527b532773a8a493309a96028e.tar.bz2 opensim-SC_OLD-75c880a6f3631a527b532773a8a493309a96028e.tar.xz |
Update parent inventory folder version numbers when folders are moved/created/deleted to match version numbers cached by viewers.
This is done in the way that one would expect (e.g. moving a folder increments version number on both source and destination parent folders).
This should hopefully improve viewer reuse of its cached inventory information.
Currently MySQL only but will be implement for SQLite/MSSQL if there are no issues.
Diffstat (limited to 'OpenSim/Data/IXInventoryData.cs')
-rw-r--r-- | OpenSim/Data/IXInventoryData.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Data/IXInventoryData.cs b/OpenSim/Data/IXInventoryData.cs index e64a828..0df71f5 100644 --- a/OpenSim/Data/IXInventoryData.cs +++ b/OpenSim/Data/IXInventoryData.cs | |||
@@ -116,7 +116,22 @@ namespace OpenSim.Data | |||
116 | /// <returns>true if the delete was successful, false if it was not</returns> | 116 | /// <returns>true if the delete was successful, false if it was not</returns> |
117 | bool DeleteItems(string[] fields, string[] vals); | 117 | bool DeleteItems(string[] fields, string[] vals); |
118 | 118 | ||
119 | /// <summary> | ||
120 | /// Move an item to a new folder. | ||
121 | /// </summary> | ||
122 | /// <returns>/returns> | ||
123 | /// <param name='id'>UUID of the item</param> | ||
124 | /// <param name='newParent'>UUID of the new folder.</param> | ||
119 | bool MoveItem(string id, string newParent); | 125 | bool MoveItem(string id, string newParent); |
126 | |||
127 | /// <summary> | ||
128 | /// Move a folder to a new folder. | ||
129 | /// </summary> | ||
130 | /// <returns>/returns> | ||
131 | /// <param name='id'>UUID of the item</param> | ||
132 | /// <param name='newParent'>UUID of the new folder.</param> | ||
133 | bool MoveFolder(string id, string newParent); | ||
134 | |||
120 | XInventoryItem[] GetActiveGestures(UUID principalID); | 135 | XInventoryItem[] GetActiveGestures(UUID principalID); |
121 | int GetAssetPermissions(UUID principalID, UUID assetID); | 136 | int GetAssetPermissions(UUID principalID, UUID assetID); |
122 | } | 137 | } |