bad mistake in last commit, though it still worked.
[blender.git] / source / blender / src / editmesh_mods.c
index b5f667ed77c38a23650abe8b1a8b63443b23ea9c..81d79de08c5cdd96b913ae9c94b1efaef9e4fbf0 100644 (file)
@@ -2549,7 +2549,7 @@ void hide_mesh(int swap)
                        efa->e3->f1 |= a;
                        if(efa->e4) efa->e4->f1 |= a;
                        /* When edges are not delt with in their own loop, we need to explicitly re-selct select edges that are joined to unselected faces */
-                       if (swap && G.scene->selectmode == SCE_SELECT_FACE & efa->f & SELECT) {
+                       if (swap && (G.scene->selectmode == SCE_SELECT_FACE) && (efa->f & SELECT)) {
                                EM_select_face(efa, 1);
                        }
                }