소스 검색

GuiTreeView bug in buildVisibleTree

There was a bug in buildVisibleTree, it should be setting the RebuildVisible flag, not clearing it.

The clip rectangle did not appear to be updating when expanding items or calling scrollVisible, which expands all the items to make a particular item visible. This would cause part of the tree to be cut off.

Setting the RebuildVisible flag made the problem go away.
Scott Przybylski 11 년 전
부모
커밋
e21a0876b6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Engine/source/gui/controls/guiTreeViewCtrl.cpp

+ 1 - 1
Engine/source/gui/controls/guiTreeViewCtrl.cpp

@@ -1237,7 +1237,7 @@ void GuiTreeViewCtrl::buildVisibleTree(bool bForceFullUpdate)
       bForceFullUpdate = true;
 
    // Update the flags.
-   mFlags.clear(RebuildVisible);
+   mFlags.set(RebuildVisible);
 
    // build the root items
    Item *traverse = mRoot;