MAINT-5753 FIXED Viewer crashes when opening a texture from object contents

meow-7.2.2
Mnikolenko ProductEngine 2015-10-19 12:13:28 +03:00
parent 4a187aec4e
commit e33be3b91f
1 changed files with 5 additions and 1 deletions

View File

@ -905,7 +905,11 @@ void LLTaskTextureBridge::openItem()
LLPreviewTexture* preview = LLFloaterReg::showTypedInstance<LLPreviewTexture>("preview_texture", LLSD(mUUID), TAKE_FOCUS_YES);
if(preview)
{
preview->setAuxItem(findItem());
LLInventoryItem* item = findItem();
if(item)
{
preview->setAuxItem(item);
}
preview->setObjectID(mPanel->getTaskUUID());
}
}