EXT-3619 : CRASH in xui preview tool when editing an inventory panel
Now checking if inventory is usable before checking if views are initialized.master
parent
65dfc74688
commit
04b63a67e6
|
|
@ -402,9 +402,12 @@ void LLInventoryPanel::modelChanged(U32 mask)
|
|||
// static
|
||||
void LLInventoryPanel::onIdle(void *userdata)
|
||||
{
|
||||
if (!gInventory.isInventoryUsable())
|
||||
return;
|
||||
|
||||
LLInventoryPanel *self = (LLInventoryPanel*)userdata;
|
||||
// Inventory just initialized, do complete build
|
||||
if (!self->mViewsInitialized && gInventory.isInventoryUsable())
|
||||
if (!self->mViewsInitialized)
|
||||
{
|
||||
self->initializeViews();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue