aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteUserData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteUserData.cs')
-rw-r--r--OpenSim/Data/SQLite/SQLiteUserData.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteUserData.cs b/OpenSim/Data/SQLite/SQLiteUserData.cs
index d943f53..85dd47b 100644
--- a/OpenSim/Data/SQLite/SQLiteUserData.cs
+++ b/OpenSim/Data/SQLite/SQLiteUserData.cs
@@ -59,6 +59,7 @@ namespace OpenSim.Data.SQLite
59 private const string AvatarPickerAndSQL = "select * from users where username like :username and surname like :surname"; 59 private const string AvatarPickerAndSQL = "select * from users where username like :username and surname like :surname";
60 private const string AvatarPickerOrSQL = "select * from users where username like :username or surname like :surname"; 60 private const string AvatarPickerOrSQL = "select * from users where username like :username or surname like :surname";
61 61
62 private Dictionary<LLUUID, AvatarAppearance> aplist = new Dictionary<LLUUID, AvatarAppearance>();
62 private DataSet ds; 63 private DataSet ds;
63 private SqliteDataAdapter da; 64 private SqliteDataAdapter da;
64 private SqliteDataAdapter daf; 65 private SqliteDataAdapter daf;
@@ -479,15 +480,23 @@ namespace OpenSim.Data.SQLite
479 } 480 }
480 481
481 /// Appearance 482 /// Appearance
482 /// TODO: stubs for now to get us to a compiling state gently 483 /// TODO: stubs for now to do in memory appearance.
483 override public AvatarAppearance GetUserAppearance(LLUUID user) 484 override public AvatarAppearance GetUserAppearance(LLUUID user)
484 { 485 {
485 return new AvatarAppearance(); 486 AvatarAppearance aa = null;
487 try {
488 aa = aplist[user];
489 m_log.Info("[APPEARANCE] Found appearance for " + user.ToString() + aa.ToString());
490 } catch (System.Collections.Generic.KeyNotFoundException e) {
491 m_log.Info("[APPEARANCE] No appearance found for " + user.ToString());
492 }
493 return aa;
486 } 494 }
487 495
488 override public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance) 496 override public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance)
489 { 497 {
490 return; 498 appearance.Owner = user;
499 aplist[user] = appearance;
491 } 500 }
492 501
493 override public void AddAttachment(LLUUID user, LLUUID item) 502 override public void AddAttachment(LLUUID user, LLUUID item)