diff options
Diffstat (limited to 'OpenSim/Region/Modules/AvatarFactory/AppearanceTableMapper.cs')
-rw-r--r-- | OpenSim/Region/Modules/AvatarFactory/AppearanceTableMapper.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Modules/AvatarFactory/AppearanceTableMapper.cs b/OpenSim/Region/Modules/AvatarFactory/AppearanceTableMapper.cs index 2d9f32f..5fb6867 100644 --- a/OpenSim/Region/Modules/AvatarFactory/AppearanceTableMapper.cs +++ b/OpenSim/Region/Modules/AvatarFactory/AppearanceTableMapper.cs | |||
@@ -50,12 +50,12 @@ namespace OpenSim.Region.Modules.AvatarFactory | |||
50 | m_schema = rowMapperSchema; | 50 | m_schema = rowMapperSchema; |
51 | 51 | ||
52 | m_keyFieldMapper = rowMapperSchema.AddMapping<Guid>("UUID", | 52 | m_keyFieldMapper = rowMapperSchema.AddMapping<Guid>("UUID", |
53 | delegate(AppearanceRowMapper mapper) { return mapper.Object.ScenePresenceID.UUID; }, | 53 | delegate(AppearanceRowMapper mapper) { return mapper.Object.Owner.UUID; }, |
54 | delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.ScenePresenceID = new LLUUID(value.ToString()); }); | 54 | delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Owner = new LLUUID(value.ToString()); }); |
55 | 55 | ||
56 | rowMapperSchema.AddMapping<uint>("Serial", | 56 | rowMapperSchema.AddMapping<uint>("Serial", |
57 | delegate(AppearanceRowMapper mapper) { return (uint)mapper.Object.WearablesSerial; }, | 57 | delegate(AppearanceRowMapper mapper) { return (uint)mapper.Object.Serial; }, |
58 | delegate(AppearanceRowMapper mapper, uint value) { mapper.Object.WearablesSerial = (int)value; }); | 58 | delegate(AppearanceRowMapper mapper, uint value) { mapper.Object.Serial = (int)value; }); |
59 | 59 | ||
60 | rowMapperSchema.AddMapping<Guid>("WearableItem0", | 60 | rowMapperSchema.AddMapping<Guid>("WearableItem0", |
61 | delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[0].ItemID.UUID; }, | 61 | delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[0].ItemID.UUID; }, |
@@ -196,7 +196,7 @@ namespace OpenSim.Region.Modules.AvatarFactory | |||
196 | public bool Update(Guid userID, AvatarAppearance appearance) | 196 | public bool Update(Guid userID, AvatarAppearance appearance) |
197 | { | 197 | { |
198 | AppearanceRowMapper mapper = CreateRowMapper(appearance); | 198 | AppearanceRowMapper mapper = CreateRowMapper(appearance); |
199 | return Update(appearance.ScenePresenceID.UUID, mapper); | 199 | return Update(appearance.Owner.UUID, mapper); |
200 | } | 200 | } |
201 | 201 | ||
202 | protected AppearanceRowMapper CreateRowMapper(AvatarAppearance appearance) | 202 | protected AppearanceRowMapper CreateRowMapper(AvatarAppearance appearance) |