diff options
author | Justin Clark-Casey (justincc) | 2011-09-23 02:59:33 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-09-23 02:59:33 +0100 |
commit | c8304b7f84b1a8d9fb978cae510f684e36419deb (patch) | |
tree | 9b450813d8023df7daf54fd2ee2b8cd19f58eb94 /OpenSim/Framework | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-c8304b7f84b1a8d9fb978cae510f684e36419deb.zip opensim-SC_OLD-c8304b7f84b1a8d9fb978cae510f684e36419deb.tar.gz opensim-SC_OLD-c8304b7f84b1a8d9fb978cae510f684e36419deb.tar.bz2 opensim-SC_OLD-c8304b7f84b1a8d9fb978cae510f684e36419deb.tar.xz |
Fix avatar parameter updating for viewer 3 and maybe 2.
When a slider parameter is changed, the viewer uploads a new shape (or other asset) and the item is updated to point to it.
Viewer 1 uploaded the data in the initial request itself, so the asset references was almost always correctly updated.
However, viewer 3/2 always uploads data in a subsequent xfer, which exposed a race condition where the viewer would make the item update before the asset had uploaded.
This commit shuffles the order of operations to avoid this race, the item is updated with the new asset id instead of the old one while the upload was still taking place.
A second race had to be fixed where avatar appearance would also be updated with the old asset id rather than the new one.
This was fixed by updating the avatar appearance ids when the appearance was actually saved, rather than when the wearables update was made.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/AssetBase.cs | 1 | ||||
-rw-r--r-- | OpenSim/Framework/AvatarAppearance.cs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Framework/AssetBase.cs b/OpenSim/Framework/AssetBase.cs index e8c85c9..d2c6c57 100644 --- a/OpenSim/Framework/AssetBase.cs +++ b/OpenSim/Framework/AssetBase.cs | |||
@@ -167,6 +167,7 @@ namespace OpenSim.Framework | |||
167 | get { return m_metadata.FullID; } | 167 | get { return m_metadata.FullID; } |
168 | set { m_metadata.FullID = value; } | 168 | set { m_metadata.FullID = value; } |
169 | } | 169 | } |
170 | |||
170 | /// <summary> | 171 | /// <summary> |
171 | /// Asset MetaData ID (transferring from UUID to string ID) | 172 | /// Asset MetaData ID (transferring from UUID to string ID) |
172 | /// </summary> | 173 | /// </summary> |
diff --git a/OpenSim/Framework/AvatarAppearance.cs b/OpenSim/Framework/AvatarAppearance.cs index c69dde3..72b580b 100644 --- a/OpenSim/Framework/AvatarAppearance.cs +++ b/OpenSim/Framework/AvatarAppearance.cs | |||
@@ -225,6 +225,8 @@ namespace OpenSim.Framework | |||
225 | /// </summary> | 225 | /// </summary> |
226 | public virtual void ResetAppearance() | 226 | public virtual void ResetAppearance() |
227 | { | 227 | { |
228 | // m_log.WarnFormat("[AVATAR APPEARANCE]: Reset appearance"); | ||
229 | |||
228 | m_serial = 0; | 230 | m_serial = 0; |
229 | 231 | ||
230 | SetDefaultTexture(); | 232 | SetDefaultTexture(); |