diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-24 01:24:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-24 01:24:56 +0400 |
commit | 902e3ddd11335f1210a8df8fbcd0229a8d2efd62 (patch) | |
tree | ef937ca562cb6e82606dc7825e995d928994feb5 /source/blender/editors | |
parent | ab2cfd87e0b092dbf2e6ba8e1f735489cd2f38d1 (diff) |
fix [#35488] Toggle "Show All Layers"
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_header.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/view3d_header.c b/source/blender/editors/space_view3d/view3d_header.c index a251a557034..094204f868b 100644 --- a/source/blender/editors/space_view3d/view3d_header.c +++ b/source/blender/editors/space_view3d/view3d_header.c @@ -137,16 +137,17 @@ static int view3d_layers_exec(bContext *C, wmOperator *op) if (nr == 0) { /* all layers */ - if (!v3d->layact) - v3d->layact = 1; + if (!v3d->lay_prev) + v3d->lay_prev = 1; if (toggle && v3d->lay == ((1 << 20) - 1)) { /* return to active layer only */ - v3d->lay = v3d->layact; + v3d->lay = v3d->lay_prev; view3d_layers_editmode_ensure(scene, v3d); } else { + v3d->lay_prev = v3d->lay; v3d->lay |= (1 << 20) - 1; } } |