bugfix, Shift+H would hide unselected objects on unseen layers.
authorCampbell Barton <ideasman42@gmail.com>
Sun, 22 Jun 2008 19:34:18 +0000 (19:34 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 22 Jun 2008 19:34:18 +0000 (19:34 +0000)
source/blender/src/editobject.c

index 3c945775b5b070ba26dfea2cf706f43eb774cd63..2e5785eaab89b88f1d8cd8d79328c6909e6b5dda 100644 (file)
@@ -5942,7 +5942,7 @@ void hide_objects(int select)
        Base *base;
        short changed = 0, changed_act = 0;
        for(base = FIRSTBASE; base; base=base->next){
-               if(TESTBASELIB(base)==select){
+               if ((base->lay & G.vd->lay) && (TESTBASELIB(base)==select)) {
                        base->flag &= ~SELECT;
                        base->object->flag = base->flag;
                        base->object->restrictflag |= OB_RESTRICT_VIEW;