foo
authorJohn Tsiombikas <nuclear@mutantstargoat.com>
Mon, 1 Aug 2016 02:27:13 +0000 (05:27 +0300)
committerJohn Tsiombikas <nuclear@mutantstargoat.com>
Mon, 1 Aug 2016 02:27:13 +0000 (05:27 +0300)
src/fs.cc

index b65db45..d038546 100644 (file)
--- a/src/fs.cc
+++ b/src/fs.cc
@@ -71,6 +71,11 @@ void draw_fs()
 
        for(int i=0; i<nchildren; i++) {
                int idx = (i + first) % nchildren;
+
+               if(cur_node->children[idx]->type == FSTYPE_DIR) {
+                       continue;
+               }
+
                Vec3 pos = icon_pos(row, col, ncols, row_spacing, radius);
 
                Mat4 xform = base_xform;