for view layer calculation, only break early if all layers are set, was breaking if any layer was set.

This commit is contained in:
Campbell Barton
2010-10-02 19:38:09 +00:00
parent 77b75e23ba
commit 3aef138175

View File

@@ -542,7 +542,8 @@ static void view3d_recalc_used_layers(ARegion *ar, wmNotifier *wmn, Scene *scene
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;
}