From 53bcf2139e7c8c9da2fbbcafc45704eae3bc5daa Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 21 May 2008 18:02:09 +0000 Subject: this removes use of the mapper for wearables, and I can confirm things get saved to the database. There are still issues on wearing things after a cleared cache that I'm looking at now. --- OpenSim/Data/UserDataBase.cs | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'OpenSim/Data/UserDataBase.cs') diff --git a/OpenSim/Data/UserDataBase.cs b/OpenSim/Data/UserDataBase.cs index ad40bbc..cbf24a7 100644 --- a/OpenSim/Data/UserDataBase.cs +++ b/OpenSim/Data/UserDataBase.cs @@ -59,20 +59,22 @@ namespace OpenSim.Data public abstract string Name {get;} public abstract void Initialise(string connect); public abstract List GeneratePickerResults(LLUUID queryID, string query); - public virtual AvatarAppearance GetUserAppearance(LLUUID user) { - AvatarAppearance aa = null; - try { - aa = aplist[user]; - m_log.Info("[APPEARANCE] Found appearance for " + user.ToString() + aa.ToString()); - } catch (System.Collections.Generic.KeyNotFoundException e) { - m_log.Info("[APPEARANCE] No appearance found for " + user.ToString()); - } - return aa; - } - public virtual void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance) { - aplist[user] = appearance; - m_log.Info("[APPEARANCE] Setting appearance for " + user.ToString() + appearance.ToString()); - } + public abstract AvatarAppearance GetUserAppearance(LLUUID user); + public abstract void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance); + // public virtual AvatarAppearance GetUserAppearance(LLUUID user) { + // AvatarAppearance aa = null; + // try { + // aa = aplist[user]; + // m_log.Info("[APPEARANCE] Found appearance for " + user.ToString() + aa.ToString()); + // } catch (System.Collections.Generic.KeyNotFoundException e) { + // m_log.Info("[APPEARANCE] No appearance found for " + user.ToString()); + // } + // return aa; + // } + // public virtual void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance) { + // aplist[user] = appearance; + // m_log.Info("[APPEARANCE] Setting appearance for " + user.ToString() + appearance.ToString()); + // } public abstract void AddAttachment(LLUUID user, LLUUID item); public abstract void RemoveAttachment(LLUUID user, LLUUID item); public abstract List GetAttachments(LLUUID user); -- cgit v1.1