]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/scenelib.h
Radiant:
[xonotic/netradiant.git] / libs / scenelib.h
index 29402065252cf7c8f2cb4d040d244e48d2e67427..08566259a4b9c0621dabec060b12b0daf4855071 100644 (file)
@@ -762,7 +762,14 @@ public:
 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;
 }
 };