diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llfloateravatartextures.cpp | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloateravatartextures.cpp | 52 |
1 files changed, 23 insertions, 29 deletions
diff --git a/linden/indra/newview/llfloateravatartextures.cpp b/linden/indra/newview/llfloateravatartextures.cpp index 31e2f11..d112ee2 100644 --- a/linden/indra/newview/llfloateravatartextures.cpp +++ b/linden/indra/newview/llfloateravatartextures.cpp | |||
@@ -67,26 +67,26 @@ LLFloaterAvatarTextures* LLFloaterAvatarTextures::show(const LLUUID &id) | |||
67 | 67 | ||
68 | BOOL LLFloaterAvatarTextures::postBuild() | 68 | BOOL LLFloaterAvatarTextures::postBuild() |
69 | { | 69 | { |
70 | mBakedHead = (LLTextureCtrl*)getChildByName("baked_head"); | 70 | mBakedHead = getChild<LLTextureCtrl>("baked_head"); |
71 | mBakedEyes = (LLTextureCtrl*)getChildByName("baked_eyes"); | 71 | mBakedEyes = getChild<LLTextureCtrl>("baked_eyes"); |
72 | mBakedUpper = (LLTextureCtrl*)getChildByName("baked_upper_body"); | 72 | mBakedUpper = getChild<LLTextureCtrl>("baked_upper_body"); |
73 | mBakedLower = (LLTextureCtrl*)getChildByName("baked_lower_body"); | 73 | mBakedLower = getChild<LLTextureCtrl>("baked_lower_body"); |
74 | mBakedSkirt = (LLTextureCtrl*)getChildByName("baked_skirt"); | 74 | mBakedSkirt = getChild<LLTextureCtrl>("baked_skirt"); |
75 | mHair = (LLTextureCtrl*)getChildByName("hair"); | 75 | mHair = getChild<LLTextureCtrl>("hair"); |
76 | mMakeup = (LLTextureCtrl*)getChildByName("head_bodypaint"); | 76 | mMakeup = getChild<LLTextureCtrl>("head_bodypaint"); |
77 | mEye = (LLTextureCtrl*)getChildByName("eye_texture"); | 77 | mEye = getChild<LLTextureCtrl>("eye_texture"); |
78 | mShirt = (LLTextureCtrl*)getChildByName("shirt"); | 78 | mShirt = getChild<LLTextureCtrl>("shirt"); |
79 | mUpperTattoo = (LLTextureCtrl*)getChildByName("upper_bodypaint"); | 79 | mUpperTattoo = getChild<LLTextureCtrl>("upper_bodypaint"); |
80 | mUpperJacket = (LLTextureCtrl*)getChildByName("upper_jacket"); | 80 | mUpperJacket = getChild<LLTextureCtrl>("upper_jacket"); |
81 | mGloves = (LLTextureCtrl*)getChildByName("gloves"); | 81 | mGloves = getChild<LLTextureCtrl>("gloves"); |
82 | mUndershirt = (LLTextureCtrl*)getChildByName("undershirt"); | 82 | mUndershirt = getChild<LLTextureCtrl>("undershirt"); |
83 | mPants = (LLTextureCtrl*)getChildByName("pants"); | 83 | mPants = getChild<LLTextureCtrl>("pants"); |
84 | mLowerTattoo = (LLTextureCtrl*)getChildByName("lower_bodypaint"); | 84 | mLowerTattoo = getChild<LLTextureCtrl>("lower_bodypaint"); |
85 | mShoes = (LLTextureCtrl*)getChildByName("shoes"); | 85 | mShoes = getChild<LLTextureCtrl>("shoes"); |
86 | mSocks = (LLTextureCtrl*)getChildByName("socks"); | 86 | mSocks = getChild<LLTextureCtrl>("socks"); |
87 | mJacket = (LLTextureCtrl*)getChildByName("jacket"); | 87 | mJacket = getChild<LLTextureCtrl>("jacket"); |
88 | mUnderpants = (LLTextureCtrl*)getChildByName("underpants"); | 88 | mUnderpants = getChild<LLTextureCtrl>("underpants"); |
89 | mSkirt = (LLTextureCtrl*)getChildByName("skirt_texture"); | 89 | mSkirt = getChild<LLTextureCtrl>("skirt_texture"); |
90 | mTitle = getTitle(); | 90 | mTitle = getTitle(); |
91 | 91 | ||
92 | childSetAction("Dump", onClickDump, this); | 92 | childSetAction("Dump", onClickDump, this); |
@@ -142,16 +142,10 @@ void LLFloaterAvatarTextures::refresh() | |||
142 | LLVOAvatar *avatarp = find_avatar(mID); | 142 | LLVOAvatar *avatarp = find_avatar(mID); |
143 | if (avatarp) | 143 | if (avatarp) |
144 | { | 144 | { |
145 | char firstname[DB_FIRST_NAME_BUF_SIZE]; /*Flawfinder: ignore*/ | 145 | std::string fullname; |
146 | char lastname[DB_LAST_NAME_BUF_SIZE]; /*Flawfinder: ignore*/ | 146 | if (gCacheName->getFullName(avatarp->getID(), fullname)) |
147 | if (gCacheName->getName(avatarp->getID(), firstname, lastname)) | ||
148 | { | 147 | { |
149 | LLString name; | 148 | setTitle(mTitle + ": " + fullname); |
150 | name.assign( firstname ); | ||
151 | name.append( " " ); | ||
152 | name.append( lastname ); | ||
153 | |||
154 | setTitle(mTitle + ": " + name); | ||
155 | } | 149 | } |
156 | update_texture_ctrl(avatarp, mBakedHead, LLVOAvatar::TEX_HEAD_BAKED); | 150 | update_texture_ctrl(avatarp, mBakedHead, LLVOAvatar::TEX_HEAD_BAKED); |
157 | update_texture_ctrl(avatarp, mBakedEyes, LLVOAvatar::TEX_EYES_BAKED); | 151 | update_texture_ctrl(avatarp, mBakedEyes, LLVOAvatar::TEX_EYES_BAKED); |