MAINT-3977 FIXED Object does not display newly added contents if it was edited that session and you teleported to another region and back and then added new contents.
parent
afcfc40b5f
commit
4e0d3bdd4d
|
|
@ -888,6 +888,9 @@ void LLFloaterTools::onClose(bool app_quitting)
|
|||
|
||||
// hide the advanced object weights floater
|
||||
LLFloaterReg::hideInstance("object_weights");
|
||||
|
||||
// prepare content for next call
|
||||
mPanelContents->clearContents();
|
||||
}
|
||||
|
||||
void click_popup_info(void*)
|
||||
|
|
|
|||
|
|
@ -141,6 +141,13 @@ void LLPanelContents::refresh()
|
|||
}
|
||||
}
|
||||
|
||||
void LLPanelContents::clearContents()
|
||||
{
|
||||
if (mPanelInventoryObject)
|
||||
{
|
||||
mPanelInventoryObject->clearInventoryTask();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ public:
|
|||
virtual ~LLPanelContents();
|
||||
|
||||
void refresh();
|
||||
void clearContents();
|
||||
|
||||
|
||||
static void onClickNewScript(void*);
|
||||
|
|
|
|||
|
|
@ -1862,14 +1862,19 @@ void LLPanelObjectInventory::refresh()
|
|||
}
|
||||
if(!has_inventory)
|
||||
{
|
||||
mTaskUUID = LLUUID::null;
|
||||
removeVOInventoryListener();
|
||||
clearContents();
|
||||
clearInventoryTask();
|
||||
}
|
||||
mInventoryViewModel.setTaskID(mTaskUUID);
|
||||
//llinfos << "LLPanelObjectInventory::refresh() " << mTaskUUID << llendl;
|
||||
}
|
||||
|
||||
void LLPanelObjectInventory::clearInventoryTask()
|
||||
{
|
||||
mTaskUUID = LLUUID::null;
|
||||
removeVOInventoryListener();
|
||||
clearContents();
|
||||
}
|
||||
|
||||
void LLPanelObjectInventory::removeSelectedItem()
|
||||
{
|
||||
if(mFolders)
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ public:
|
|||
|
||||
void refresh();
|
||||
const LLUUID& getTaskUUID() { return mTaskUUID;}
|
||||
void clearInventoryTask();
|
||||
void removeSelectedItem();
|
||||
void startRenamingSelectedItem();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue