Bug fix #1935
authorTon Roosendaal <ton@blender.org>
Thu, 2 Dec 2004 12:37:08 +0000 (12:37 +0000)
committerTon Roosendaal <ton@blender.org>
Thu, 2 Dec 2004 12:37:08 +0000 (12:37 +0000)
Using header view3d pulldown for "align active camera to view" didn't clear
the abused modifier value correctly. Learn from this:

incorrect: G.qual &= ~LR_CTRLKEY|LR_ALTKEY;
correct:   G.qual &= ~(LR_CTRLKEY|LR_ALTKEY);

source/blender/src/header_view3d.c

index 7fb5e73002dc78fedc2007e4dcd7d760c7f79bcc..22cab5fa1c6b985590af468308dba81a7b6dea0a 100644 (file)
@@ -300,7 +300,7 @@ static void do_view3d_view_alignviewmenu(void *arg, int event)
                 */
                G.qual |= LR_CTRLKEY|LR_ALTKEY;
                persptoetsen(PAD0);
-               G.qual &= ~LR_CTRLKEY|LR_ALTKEY;
+               G.qual &= ~(LR_CTRLKEY|LR_ALTKEY);
                break;
        case 5: /* Align View to Selected (object mode) */
                mainqenter(PADASTERKEY, 1);