| 239 | } |
| 240 | |
| 241 | void Object::setGlobalVisibility( bool on, ViewportMask viewportMask /*= ViewportMask::any() */ ) |
| 242 | { |
| 243 | setVisible( on, viewportMask ); |
| 244 | if ( !on ) |
| 245 | return; |
| 246 | |
| 247 | auto parent = this->parent(); |
| 248 | while ( parent ) |
| 249 | { |
| 250 | parent->setVisible( true, viewportMask ); |
| 251 | parent = parent->parent(); |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | bool Object::isAncestor( const Object* ancestor ) const |
| 256 | { |
no test coverage detected