From 306ebd1ad73e4c150a05f070f8a7128b3b18b3be Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 1 Jun 2016 19:02:45 +0200 Subject: [PATCH] Fix a backwards compatibility issue causing some panels to go missing --- renderdocui/Windows/TextureViewer.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/renderdocui/Windows/TextureViewer.cs b/renderdocui/Windows/TextureViewer.cs index 62507d7cc..ca9087b55 100644 --- a/renderdocui/Windows/TextureViewer.cs +++ b/renderdocui/Windows/TextureViewer.cs @@ -582,6 +582,12 @@ namespace renderdocui.Windows if (persistString == p.Name && p.Parent is IDockContent && (p.Parent as DockContent).DockPanel == null) return p.Parent as IDockContent; + // backwards compatibilty for rename + if(persistString == "texPanel") + return roPanel.Parent as IDockContent; + if(persistString == "rtPanel") + return rwPanel.Parent as IDockContent; + return null; }