bugfix for view naming, pressing numpad5 would clear the V3D_OPP_DIRECTION_NAME flag...
[blender.git] / source / blender / src / toets.c
index 5b6af61949f3b022a238638a1e9c0a4423e1d7c2..5f80f14d06963d41ec928d1c5ed845aee809d121 100644 (file)
@@ -228,8 +228,8 @@ void persptoetsen(unsigned short event)
        }
        else {
                /* Indicate that this view is not inverted.
-                * Don't do this for PADMINUS/PADPLUSKEY, though. (jobbe)*/
-               if (event != PADMINUS && event != PADPLUSKEY)
+                * Don't do this for PADMINUS/PADPLUSKEY/PAD5, though. (jobbe)*/
+               if (! ELEM3(event, PADMINUS, PADPLUSKEY, PAD5) )
                        G.vd->flag2 &= ~V3D_OPP_DIRECTION_NAME;