aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar
diff options
context:
space:
mode:
authorMelanie2012-01-06 00:08:18 +0000
committerMelanie2012-01-06 00:08:18 +0000
commitfdfc4ab2a8e171139caf9751a23eb75afe881c2b (patch)
treebc0d8d3066ecf5fe87e0778e23190d14a58d3bc1 /OpenSim/Region/CoreModules/Avatar
parentThat needs to be callable from elsewhere! (diff)
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC-fdfc4ab2a8e171139caf9751a23eb75afe881c2b.zip
opensim-SC-fdfc4ab2a8e171139caf9751a23eb75afe881c2b.tar.gz
opensim-SC-fdfc4ab2a8e171139caf9751a23eb75afe881c2b.tar.bz2
opensim-SC-fdfc4ab2a8e171139caf9751a23eb75afe881c2b.tar.xz
Merge branch 'master' into careminster
Conflicts: OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-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