aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
index 9df0592..d68d28c 100644
--- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
@@ -321,8 +321,10 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
321 return (defonly ? false : true); 321 return (defonly ? false : true);
322 } 322 }
323 323
324 public void RequestRebake(IScenePresence sp, bool missingTexturesOnly) 324 public int RequestRebake(IScenePresence sp, bool missingTexturesOnly)
325 { 325 {
326 int texturesRebaked = 0;
327
326 for (int i = 0; i < AvatarAppearance.BAKE_INDICES.Length; i++) 328 for (int i = 0; i < AvatarAppearance.BAKE_INDICES.Length; i++)
327 { 329 {
328 int idx = AvatarAppearance.BAKE_INDICES[i]; 330 int idx = AvatarAppearance.BAKE_INDICES[i];
@@ -359,8 +361,11 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
359 face.TextureID, idx, sp.Name); 361 face.TextureID, idx, sp.Name);
360 } 362 }
361 363
364 texturesRebaked++;
362 sp.ControllingClient.SendRebakeAvatarTextures(face.TextureID); 365 sp.ControllingClient.SendRebakeAvatarTextures(face.TextureID);
363 } 366 }
367
368 return texturesRebaked;
364 } 369 }
365 370
366 #endregion 371 #endregion