mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 09:26:52 +00:00
Only refresh texture list if resource renames changed
* Otherwise the texture list doesn't change when selecting events.
This commit is contained in:
@@ -3006,7 +3006,7 @@ void TextureViewer::Reset()
|
||||
|
||||
void TextureViewer::refreshTextureList()
|
||||
{
|
||||
refreshTextureList(FilterType::None, QString());
|
||||
on_textureListFilter_currentIndexChanged(ui->textureListFilter->currentIndex());
|
||||
}
|
||||
|
||||
void addToRoot(RDTreeWidgetItem *root, const TextureDescription &t)
|
||||
@@ -3108,7 +3108,12 @@ void TextureViewer::OnEventChanged(uint32_t eventId)
|
||||
UI_CreateThumbnails();
|
||||
|
||||
UI_UpdateTextureDetails();
|
||||
refreshTextureList();
|
||||
|
||||
if(m_ResourceCacheID != m_Ctx.ResourceNameCacheID())
|
||||
{
|
||||
m_ResourceCacheID = m_Ctx.ResourceNameCacheID();
|
||||
refreshTextureList();
|
||||
}
|
||||
|
||||
// iterate over locked tabs, and update the name if it's changed
|
||||
for(QWidget *w : m_LockedTabs.values())
|
||||
|
||||
Reference in New Issue
Block a user