diff options
author | Nyx (Neal Orman) <nyx@lindenlab.com> | 2012-04-02 17:41:02 -0400 |
---|---|---|
committer | Nyx (Neal Orman) <nyx@lindenlab.com> | 2012-04-02 17:41:02 -0400 |
commit | 9eef61327bed3e71c2342d333596251d59b1500a (patch) | |
tree | dfe7c578bd8bfae00a1bc29e89f6a138911ba20b /indra | |
parent | 54ed00b6a2bff91b98a69d4f89dd1a2ce0e559fe (diff) |
SH-3041 BUILDFIX fixed a bad function call
Had a function call in last checkin that was removed before commit since I thought
it was only used in debug code. Adding it back in as its actually used.
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/newview/llvoavatarself.cpp | 14 | ||||
-rwxr-xr-x | indra/newview/llvoavatarself.h | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp index 51d603f3bd..d0ccdf5209 100755 --- a/indra/newview/llvoavatarself.cpp +++ b/indra/newview/llvoavatarself.cpp @@ -2645,6 +2645,20 @@ LLTexLayerSet* LLVOAvatarSelf::getLayerSet(ETextureIndex index) const return NULL; } +LLTexLayerSet* LLVOAvatarSelf::getLayerSet(EBakedTextureIndex baked_index) const +{ + /* switch(index) + case TEX_HEAD_BAKED: + case TEX_HEAD_BODYPAINT: + return mHeadLayerSet; */ + if (baked_index >= 0 && baked_index < BAKED_NUM_INDICES) + { + return mBakedTextureDatas[baked_index].mTexLayerSet; + } + return NULL; +} + + // static void LLVOAvatarSelf::onCustomizeStart() { diff --git a/indra/newview/llvoavatarself.h b/indra/newview/llvoavatarself.h index 17cdd514cc..004f7e885b 100755 --- a/indra/newview/llvoavatarself.h +++ b/indra/newview/llvoavatarself.h @@ -241,6 +241,7 @@ public: void requestLayerSetUpload(LLVOAvatarDefines::EBakedTextureIndex i); void requestLayerSetUpdate(LLVOAvatarDefines::ETextureIndex i); LLTexLayerSet* getLayerSet(LLVOAvatarDefines::ETextureIndex index) const; + LLTexLayerSet* getLayerSet(LLVOAvatarDefines::EBakedTextureIndex baked_index) const; //-------------------------------------------------------------------- // Composites |