diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-10-02 23:38:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-10-02 23:38:09 +0400 |
commit | 3aef138175496d059ce483f9e097eaff063b7a69 (patch) | |
tree | 77f2873db7efa7982d95d2fd7da43737edeffb97 /source/blender/editors/space_view3d | |
parent | 77b75e23ba87122c78a361011e3fd09202ef85d8 (diff) |
for view layer calculation, only break early if all layers are set, was breaking if any layer was set.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/space_view3d.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c index 4c9d8f88dd1..6dc37313698 100644 --- a/source/blender/editors/space_view3d/space_view3d.c +++ b/source/blender/editors/space_view3d/space_view3d.c @@ -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; } |