OSDN Git Service

RAD-422: Speed up appearance changes on SSA regions
authorLatif Khalifa <latifer@streamgrid.net>
Sat, 30 Mar 2013 15:34:52 +0000 (16:34 +0100)
committerLatif Khalifa <latifer@streamgrid.net>
Sat, 30 Mar 2013 15:34:52 +0000 (16:34 +0100)
Radegast/GUI/Consoles/Inventory/CurrentOutfitFolder.cs

index 84db2ce..3bbf0a8 100644 (file)
@@ -544,7 +544,11 @@ namespace Radegast
             }
 
             Client.Appearance.ReplaceOutfit(outfit);
-            //Client.Appearance.RequestSetAppearance(true);
+            ThreadPool.QueueUserWorkItem(sync =>
+            {
+                Thread.Sleep(2000);
+                Client.Appearance.RequestSetAppearance(true);
+            });
         }
 
         /// <summary>
@@ -605,6 +609,11 @@ namespace Radegast
             }
 
             Client.Appearance.AddToOutfit(outfit, replace);
+            ThreadPool.QueueUserWorkItem(sync =>
+            {
+                Thread.Sleep(2000);
+                Client.Appearance.RequestSetAppearance(true);
+            });
         }
 
         /// <summary>