]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/scenelib.h
Merge commit 'dce6730b39a2e6484015e483c46edbe93054f6a0' into garux-merge
[xonotic/netradiant.git] / libs / scenelib.h
index e1c05d464d8ba5ee096c55f6f08c2a122db47e9e..c18f5bdbac20c160ae716b6904ad6272a6959a4f 100644 (file)
@@ -763,7 +763,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;
 }
 };