MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / setGlobalVisibility

Method setGlobalVisibility

source/MRMesh/MRObject.cpp:241–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void 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
255bool Object::isAncestor( const Object* ancestor ) const
256{

Callers 3

changeSelectionMethod · 0.80
updateSelection_Method · 0.80

Calls 2

parentMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected