The hide .data code didn't work correctly when databrowse is used to return something...
authorMartin Poirier <theeth@yahoo.com>
Tue, 12 Jul 2005 03:37:16 +0000 (03:37 +0000)
committerMartin Poirier <theeth@yahoo.com>
Tue, 12 Jul 2005 03:37:16 +0000 (03:37 +0000)
It only counted visible blocks, but to get a valid index, it has to count invisible ones too.

Fixed

source/blender/src/filesel.c

index c122bf9107356776620af176bfdbf589f1a4bd05..b77df81641ea718c795cf1e55f98dd23f4aadb0a 100644 (file)
@@ -2496,8 +2496,8 @@ void main_to_filelist(SpaceFile *sfile)
                                        }
                                        
                                        files++;
-                                       totbl++;
                                }
+                               totbl++;
                        }
                        
                        id= id->next;