| 151 | } |
| 152 | |
| 153 | bool RibbonSceneObjectsListDrawer::drawObject_( Object& object, const std::string& uniqueStr, int depth ) |
| 154 | { |
| 155 | const bool hasRealChildren = !object.isAncillary() && objectHasSelectableChildren( object ); |
| 156 | |
| 157 | auto isOpened = drawTreeOpenedState_( object, !hasRealChildren, uniqueStr, depth ); |
| 158 | ImGui::SameLine(); |
| 159 | drawObjectLine_( object, uniqueStr, isOpened ); |
| 160 | |
| 161 | // update last sibling |
| 162 | if ( lastDrawnSibling_.size() <= depth ) |
| 163 | lastDrawnSibling_.resize( depth + 1 ); |
| 164 | lastDrawnSibling_[depth] = { ImGui::GetCursorScreenPos().y,currentElementId_ }; |
| 165 | ++currentElementId_; |
| 166 | |
| 167 | return isOpened; |
| 168 | } |
| 169 | |
| 170 | bool RibbonSceneObjectsListDrawer::drawSkippedObject_( Object& object, const std::string& uniqueStr, int depth ) |
| 171 | { |
nothing calls this directly
no test coverage detected