CHUI-352 FIXED (Viewer crash when dropping a worn attachment): getting the item's id before destruction corresponding viewmodel's item

meow-7.2.2
AlexanderP ProductEngine 2012-09-27 17:14:15 +03:00
parent f7f15900ea
commit 6daf27cd0f
1 changed files with 2 additions and 1 deletions

View File

@ -441,8 +441,9 @@ void LLInventoryPanel::modelChanged(U32 mask)
handled = true;
if (model_item && view_item && viewmodel_item)
{
const LLUUID& idp = viewmodel_item->getUUID();
view_item->destroyView();
removeItemID(viewmodel_item->getUUID());
removeItemID(idp);
}
view_item = buildNewViews(item_id);
viewmodel_item =