returns whether the object has selectable children \param recurse - if true, look up for selectable children at any depth
| 61 | /// returns whether the object has selectable children |
| 62 | /// \param recurse - if true, look up for selectable children at any depth |
| 63 | inline bool objectHasSelectableChildren( const MR::Object& object, bool recurse = false ) |
| 64 | { |
| 65 | for ( const auto& child : object.children() ) |
| 66 | { |
| 67 | if ( !child->isAncillary() || ( recurse && objectHasSelectableChildren( *child, recurse ) ) ) |
| 68 | return true; |
| 69 | } |
| 70 | return false; |
| 71 | } |
| 72 | |
| 73 | } |
| 74 |
no outgoing calls
no test coverage detected