MAINT-3205 FIXED Normal map thumbnail icon lacks "Multiple" text when last-selected face lacks a normal map
parent
3ccb8d6a56
commit
5a1f4ac1a7
|
|
@ -902,52 +902,22 @@ void LLPanelFace::updateUI()
|
|||
getChildView("label maskcutoff")->setEnabled(editable && mIsAlpha);
|
||||
}
|
||||
}
|
||||
|
||||
if (shinytexture_ctrl)
|
||||
{
|
||||
if (identical_spec && (shiny == SHINY_TEXTURE))
|
||||
{
|
||||
shinytexture_ctrl->setTentative( FALSE );
|
||||
shinytexture_ctrl->setEnabled( editable );
|
||||
shinytexture_ctrl->setImageAssetID( specmap_id );
|
||||
}
|
||||
else if (specmap_id.isNull())
|
||||
{
|
||||
shinytexture_ctrl->setTentative( FALSE );
|
||||
shinytexture_ctrl->setEnabled( editable );
|
||||
shinytexture_ctrl->setImageAssetID( LLUUID::null );
|
||||
}
|
||||
else
|
||||
{
|
||||
shinytexture_ctrl->setTentative( TRUE );
|
||||
shinytexture_ctrl->setEnabled( editable );
|
||||
shinytexture_ctrl->setImageAssetID( specmap_id );
|
||||
|
||||
if (shinytexture_ctrl)
|
||||
{
|
||||
shinytexture_ctrl->setTentative( !identical_spec );
|
||||
shinytexture_ctrl->setEnabled( editable );
|
||||
shinytexture_ctrl->setImageAssetID( specmap_id );
|
||||
}
|
||||
|
||||
if (bumpytexture_ctrl)
|
||||
{
|
||||
bumpytexture_ctrl->setTentative( !identical_norm );
|
||||
bumpytexture_ctrl->setEnabled( editable );
|
||||
bumpytexture_ctrl->setImageAssetID( normmap_id );
|
||||
}
|
||||
}
|
||||
|
||||
if (bumpytexture_ctrl)
|
||||
{
|
||||
if (identical_norm && (bumpy == BUMPY_TEXTURE))
|
||||
{
|
||||
bumpytexture_ctrl->setTentative( FALSE );
|
||||
bumpytexture_ctrl->setEnabled( editable );
|
||||
bumpytexture_ctrl->setImageAssetID( normmap_id );
|
||||
}
|
||||
else if (normmap_id.isNull())
|
||||
{
|
||||
bumpytexture_ctrl->setTentative( FALSE );
|
||||
bumpytexture_ctrl->setEnabled( editable );
|
||||
bumpytexture_ctrl->setImageAssetID( LLUUID::null );
|
||||
}
|
||||
else
|
||||
{
|
||||
bumpytexture_ctrl->setTentative( TRUE );
|
||||
bumpytexture_ctrl->setEnabled( editable );
|
||||
bumpytexture_ctrl->setImageAssetID( normmap_id );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// planar align
|
||||
bool align_planar = false;
|
||||
bool identical_planar_aligned = false;
|
||||
|
|
|
|||
|
|
@ -1511,8 +1511,8 @@ void LLTextureCtrl::draw()
|
|||
gl_draw_x( interior, LLColor4::black );
|
||||
}
|
||||
|
||||
mTentativeLabel->setVisible( !mTexturep.isNull() && getTentative() );
|
||||
|
||||
mTentativeLabel->setVisible( getTentative() );
|
||||
|
||||
// Show "Loading..." string on the top left corner while this texture is loading.
|
||||
// Using the discard level, do not show the string if the texture is almost but not
|
||||
// fully loaded.
|
||||
|
|
|
|||
Loading…
Reference in New Issue