Fix copy&paste error in LLPanelFace (#2233)
parent
fe0f1be17b
commit
f782f5f534
|
|
@ -1425,8 +1425,8 @@ void LLPanelFace::updateUI(bool force_set_values /*false*/)
|
|||
{
|
||||
mTexScaleV->setValue(diff_scale_t);
|
||||
}
|
||||
mShinyScaleV->setValue(norm_scale_t);
|
||||
mBumpyScaleV->setValue(spec_scale_t);
|
||||
mShinyScaleV->setValue(spec_scale_t);
|
||||
mBumpyScaleV->setValue(norm_scale_t);
|
||||
|
||||
mTexScaleV->setTentative(LLSD(diff_scale_tentative));
|
||||
mShinyScaleV->setTentative(LLSD(spec_scale_tentative));
|
||||
|
|
@ -2181,7 +2181,7 @@ void LLPanelFace::onMaterialOverrideReceived(const LLUUID& object_id, S32 side)
|
|||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
void LLPanelFace::navigateToTitleMedia( const std::string url )
|
||||
void LLPanelFace::navigateToTitleMedia(const std::string& url)
|
||||
{
|
||||
std::string multi_media_info_str = LLTrans::getString("Multiple Media");
|
||||
if (url.empty() || multi_media_info_str == url)
|
||||
|
|
@ -2193,9 +2193,9 @@ void LLPanelFace::navigateToTitleMedia( const std::string url )
|
|||
{
|
||||
LLPluginClassMedia* media_plugin = mTitleMedia->getMediaPlugin();
|
||||
// check if url changed or if we need a new media source
|
||||
if (mTitleMedia->getCurrentNavUrl() != url || media_plugin == NULL)
|
||||
if (mTitleMedia->getCurrentNavUrl() != url || media_plugin == nullptr)
|
||||
{
|
||||
mTitleMedia->navigateTo( url );
|
||||
mTitleMedia->navigateTo(url);
|
||||
|
||||
LLViewerMediaImpl* impl = LLViewerMedia::getInstance()->getMediaImplFromTextureID(mTitleMedia->getTextureID());
|
||||
if (impl)
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ public:
|
|||
LLGLTFMaterial::TextureInfo getPBRDropChannel();
|
||||
|
||||
protected:
|
||||
void navigateToTitleMedia(const std::string url);
|
||||
void navigateToTitleMedia(const std::string& url);
|
||||
bool selectedMediaEditable();
|
||||
void clearMediaSettings();
|
||||
void updateMediaSettings();
|
||||
|
|
@ -226,7 +226,6 @@ protected:
|
|||
void onCommitMaterialGloss();
|
||||
void onCommitMaterialEnv();
|
||||
void onCommitMaterialMaskCutoff();
|
||||
void onCommitMaterialID();
|
||||
|
||||
void onCommitMaterialsMedia();
|
||||
void onCommitMaterialType();
|
||||
|
|
@ -270,7 +269,7 @@ protected:
|
|||
static F32 valueGlow(LLViewerObject* object, S32 face);
|
||||
|
||||
private:
|
||||
bool isAlpha() { return mIsAlpha; }
|
||||
bool isAlpha() const { return mIsAlpha; }
|
||||
|
||||
// Convenience funcs to keep the visual flack to a minimum
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in New Issue