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.
This commit is contained in:
baldurk
2020-03-02 12:14:55 +00:00
parent 48f52b2743
commit 175f71beb1
-7
View File
@@ -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]