aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvoavatar.h
diff options
context:
space:
mode:
authorArmin Weatherwax2010-03-09 23:00:38 +0100
committerJacek Antonelli2010-06-19 02:43:01 -0500
commit523e0e2dff6af1c5bc12e2aefc0ca9b96bf26fd6 (patch)
treeefc2b1bf0b7ca57b4fcc5e64da555907437a408d /linden/indra/newview/llvoavatar.h
parentApplied patch by Kirstenlee Cinquetti for SNOW-493: LLDataPackerBinaryBuffer:... (diff)
downloadmeta-impy-523e0e2dff6af1c5bc12e2aefc0ca9b96bf26fd6.zip
meta-impy-523e0e2dff6af1c5bc12e2aefc0ca9b96bf26fd6.tar.gz
meta-impy-523e0e2dff6af1c5bc12e2aefc0ca9b96bf26fd6.tar.bz2
meta-impy-523e0e2dff6af1c5bc12e2aefc0ca9b96bf26fd6.tar.xz
Henri Beauchamp: Port of SG-2.0 alpha and tattoo layers (v6)
slviewer-0-v12350-AlphaAndTattooSupport-patch.zip contains the necessary avatar_lad.xml and other artwork. The new avatar_lad.xml crashes clients without alpha and tattoo support at startup.
Diffstat (limited to 'linden/indra/newview/llvoavatar.h')
-rw-r--r--linden/indra/newview/llvoavatar.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/linden/indra/newview/llvoavatar.h b/linden/indra/newview/llvoavatar.h
index 0bf648a..1914f47 100644
--- a/linden/indra/newview/llvoavatar.h
+++ b/linden/indra/newview/llvoavatar.h
@@ -39,6 +39,7 @@
39#include <string> 39#include <string>
40#include <vector> 40#include <vector>
41 41
42#include "imageids.h" // IMG_INVISIBLE
42#include "llchat.h" 43#include "llchat.h"
43#include "lldrawpoolalpha.h" 44#include "lldrawpoolalpha.h"
44#include "llviewerobject.h" 45#include "llviewerobject.h"
@@ -342,7 +343,7 @@ public:
342 BOOL teToColorParams( LLVOAvatarDefines::ETextureIndex te, const char* param_name[3] ); 343 BOOL teToColorParams( LLVOAvatarDefines::ETextureIndex te, const char* param_name[3] );
343 344
344 BOOL isWearingWearableType( EWearableType type ); 345 BOOL isWearingWearableType( EWearableType type );
345 void wearableUpdated( EWearableType type ); 346 void wearableUpdated(EWearableType type, BOOL upload_result = TRUE);
346 347
347 //-------------------------------------------------------------------- 348 //--------------------------------------------------------------------
348 // texture compositing 349 // texture compositing
@@ -602,6 +603,7 @@ private:
602 BOOL mIsBuilt; // state of deferred character building 603 BOOL mIsBuilt; // state of deferred character building
603 F32 mSpeedAccum; // measures speed (for diagnostics mostly). 604 F32 mSpeedAccum; // measures speed (for diagnostics mostly).
604 605
606 BOOL mSupportsAlphaLayers; // For backwards compatibility, TRUE for 1.23+ clients
605 607
606 // LLFrameTimer mUpdateLODTimer; // controls frequency of LOD change calculations 608 // LLFrameTimer mUpdateLODTimer; // controls frequency of LOD change calculations
607 BOOL mDirtyMesh; 609 BOOL mDirtyMesh;
@@ -827,7 +829,7 @@ inline BOOL LLVOAvatar::isTextureDefined(U8 te) const
827 829
828inline BOOL LLVOAvatar::isTextureVisible(U8 te) const 830inline BOOL LLVOAvatar::isTextureVisible(U8 te) const
829{ 831{
830 return ((isTextureDefined(te) || isSelf()) 832 return ((isTextureDefined(te) || mIsSelf)
831 && (getTEImage(te)->getID() != IMG_INVISIBLE 833 && (getTEImage(te)->getID() != IMG_INVISIBLE
832 || LLDrawPoolAlpha::sShowDebugAlpha)); 834 || LLDrawPoolAlpha::sShowDebugAlpha));
833} 835}