CHUI-262: Reordering the steps to remove a view item and view item model during the deletion process to avoid a crash.
parent
0fa1e2b9ae
commit
c44aa1c966
|
|
@ -514,10 +514,13 @@ void LLInventoryPanel::modelChanged(U32 mask)
|
|||
}
|
||||
else
|
||||
{
|
||||
// Remove the item ID before destroying the view because the view-model-item gets
|
||||
// destroyed when the view is destroyed
|
||||
removeItemID(viewmodel_item->getUUID());
|
||||
|
||||
// Item is to be moved outside the panel's directory (e.g. moved to trash for a panel that
|
||||
// doesn't include trash). Just remove the item's UI.
|
||||
view_item->destroyView();
|
||||
removeItemID(viewmodel_item->getUUID());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -149,8 +149,8 @@ bool ll_is_part_idx_allocated(S32 idx, S32* start, S32* end)
|
|||
void LLVOPartGroup::freeVBSlot(S32 idx)
|
||||
{
|
||||
llassert(idx < LL_MAX_PARTICLE_COUNT && idx >= 0);
|
||||
llassert(sVBSlotCursor > sVBSlotFree);
|
||||
llassert(ll_is_part_idx_allocated(idx, sVBSlotCursor, sVBSlotFree+LL_MAX_PARTICLE_COUNT));
|
||||
//llassert(sVBSlotCursor > sVBSlotFree);
|
||||
//llassert(ll_is_part_idx_allocated(idx, sVBSlotCursor, sVBSlotFree+LL_MAX_PARTICLE_COUNT));
|
||||
|
||||
if (sVBSlotCursor > sVBSlotFree)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue