SL-20167: Also check permission on paste to be certain

master
Cosmic Linden 2023-09-06 11:02:31 -07:00
parent 05c8ef3f3c
commit ab66df94cb
1 changed files with 2 additions and 1 deletions

View File

@ -4344,7 +4344,8 @@ void LLPanelFace::onPasteTexture()
|| objectp->getPCode() != LL_PCODE_VOLUME
|| !objectp->permModify()
|| objectp->isPermanentEnforced()
|| selected_count > 1)
|| selected_count > 1
|| !LLMaterialEditor::canClipboardObjectsMaterial())
{
// not supposed to happen
LL_WARNS() << "Failed to paste texture due to missing or wrong selection" << LL_ENDL;