diff options
Diffstat (limited to 'OpenSim/Framework/AvatarAppearance.cs')
-rw-r--r-- | OpenSim/Framework/AvatarAppearance.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Framework/AvatarAppearance.cs b/OpenSim/Framework/AvatarAppearance.cs index 18a5733..d0c8b73 100644 --- a/OpenSim/Framework/AvatarAppearance.cs +++ b/OpenSim/Framework/AvatarAppearance.cs | |||
@@ -256,6 +256,21 @@ namespace OpenSim.Framework | |||
256 | // } | 256 | // } |
257 | } | 257 | } |
258 | 258 | ||
259 | /// <summary> | ||
260 | /// Invalidate all of the baked textures in the appearance, useful | ||
261 | /// if you know that none are valid | ||
262 | /// </summary> | ||
263 | public virtual void ResetBakedTextures() | ||
264 | { | ||
265 | SetDefaultTexture(); | ||
266 | |||
267 | //for (int i = 0; i < BAKE_INDICES.Length; i++) | ||
268 | // { | ||
269 | // int idx = BAKE_INDICES[i]; | ||
270 | // m_texture.FaceTextures[idx].TextureID = UUID.Zero; | ||
271 | // } | ||
272 | } | ||
273 | |||
259 | protected virtual void SetDefaultTexture() | 274 | protected virtual void SetDefaultTexture() |
260 | { | 275 | { |
261 | m_texture = new Primitive.TextureEntry(new UUID(AppearanceManager.DEFAULT_AVATAR_TEXTURE)); | 276 | m_texture = new Primitive.TextureEntry(new UUID(AppearanceManager.DEFAULT_AVATAR_TEXTURE)); |