From 175f71beb19cdecc2b52fd01e7ebed9297b4a344 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 2 Mar 2020 12:14:55 +0000 Subject: [PATCH] Always combine structures even with only one child * This means that foo.bar.baz will still have a hierarchy created even if each level only has one child. --- qrenderdoc/Windows/ShaderViewer.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/qrenderdoc/Windows/ShaderViewer.cpp b/qrenderdoc/Windows/ShaderViewer.cpp index 326056ef6..ca0466178 100644 --- a/qrenderdoc/Windows/ShaderViewer.cpp +++ b/qrenderdoc/Windows/ShaderViewer.cpp @@ -1751,13 +1751,6 @@ void ShaderViewer::combineStructures(RDTreeWidgetItem *root, int skipPrefixLengt c--; } - // no other matches with the same prefix, just move across - if(matches.count() == 1) - { - temp.insertChild(0, child); - continue; - } - // Sort the children by offset, then global source var index, then by text. // Using the global source var index allows resource arrays to be presented in index order // rather than by name, so for example arr[2] comes before arr[10]