InstanceWalker( const Functor& functor ) : m_functor( functor ){
}
bool pre( const scene::Path& path, scene::Instance& instance ) const {
- m_functor( instance );
+ //m_functor( instance );
+ //return true;
+ if ( path.top().get().visible() ) {
+ m_functor( instance );
+ }
+ else{
+ return false;
+ }
return true;
}
};