aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Examples
diff options
context:
space:
mode:
authorSean Dague2007-12-03 20:06:01 +0000
committerSean Dague2007-12-03 20:06:01 +0000
commit8f58a9a107047bf9d9aff4d8c25171acaa8e9805 (patch)
treebde9e5b6c29792d19c487549f99f198709e61bc8 /OpenSim/Region/Examples
parent* Now using interpolation to expand the 256x256 heightfield data to 512x512 b... (diff)
downloadopensim-SC_OLD-8f58a9a107047bf9d9aff4d8c25171acaa8e9805.zip
opensim-SC_OLD-8f58a9a107047bf9d9aff4d8c25171acaa8e9805.tar.gz
opensim-SC_OLD-8f58a9a107047bf9d9aff4d8c25171acaa8e9805.tar.bz2
opensim-SC_OLD-8f58a9a107047bf9d9aff4d8c25171acaa8e9805.tar.xz
From Justin Casey (IBM)
While exploring what it would take to get the 'new script' button working, I encountered the fact, some way down in the rabbit hole, that if a user renamed an item in their inventory and logged out (without a restart of the simulator), on log in the new name was not preserved. As far as I can see, this was because any updates which didn't occur inside a transaction were ignored by opensim. This patch pays attention to those changes. It generates a new asset when an item is updated and changes the user's inventory properties appropriately. I believe this behaviour is in line with the copy-on-write semantics used in the Second Life protocol - perhaps it could be optimized if we knew for sure that the only copy of the object was in the user's inventory. This also means that if you rename an item (e.g. a script) before you drag it into an object's inventory, the inventory will receive the item's most recent name and description.
Diffstat (limited to 'OpenSim/Region/Examples')
-rw-r--r--OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
index 6887deb..69cf7b3 100644
--- a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
+++ b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs
@@ -108,7 +108,7 @@ namespace SimpleApp
108 public event FetchInventoryDescendents OnFetchInventoryDescendents; 108 public event FetchInventoryDescendents OnFetchInventoryDescendents;
109 public event FetchInventory OnFetchInventory; 109 public event FetchInventory OnFetchInventory;
110 public event RequestTaskInventory OnRequestTaskInventory; 110 public event RequestTaskInventory OnRequestTaskInventory;
111 public event UpdateInventoryItemTransaction OnUpdateInventoryItem; 111 public event UpdateInventoryItem OnUpdateInventoryItem;
112 public event CopyInventoryItem OnCopyInventoryItem; 112 public event CopyInventoryItem OnCopyInventoryItem;
113 public event UDPAssetUploadRequest OnAssetUploadRequest; 113 public event UDPAssetUploadRequest OnAssetUploadRequest;
114 public event XferReceive OnXferReceive; 114 public event XferReceive OnXferReceive;
@@ -157,6 +157,11 @@ namespace SimpleApp
157 { 157 {
158 get { return LLUUID.Zero; } 158 get { return LLUUID.Zero; }
159 } 159 }
160
161 public LLUUID SecureSessionId
162 {
163 get { return LLUUID.Zero; }
164 }
160 165
161 public virtual string FirstName 166 public virtual string FirstName
162 { 167 {