for view layer calculation, only break early if all layers are set, was breaking...
authorCampbell Barton <ideasman42@gmail.com>
Sat, 2 Oct 2010 19:38:09 +0000 (19:38 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 2 Oct 2010 19:38:09 +0000 (19:38 +0000)
source/blender/editors/space_view3d/space_view3d.c

index 4c9d8f88dd190da1dcd4d6ace6a9216bedd1ebd6..6dc37313698952609793f8270d2c3801c1961131 100644 (file)
@@ -542,7 +542,8 @@ static void view3d_recalc_used_layers(ARegion *ar, wmNotifier *wmn, Scene *scene
        while(base) {
                lay_used|= base->lay;
 
        while(base) {
                lay_used|= base->lay;
 
-               if (lay_used & (1<<20-1)) break;
+               if ((lay_used & ((1<<20)-1)) == (1<<20)-1)
+                       break;
 
                base= base->next;
        }
 
                base= base->next;
        }