Page MenuHome

scroll.patch

Authored By
Johannes Meng (jobbe)
Nov 13 2013, 1:17 PM
Size
1 KB
Subscribers
None

scroll.patch

Index: source/blender/src/toets.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/toets.c,v
retrieving revision 1.82
diff -u -r1.82 toets.c
--- source/blender/src/toets.c 20 Jul 2006 10:36:55 -0000 1.82
+++ source/blender/src/toets.c 15 Sep 2006 13:33:44 -0000
@@ -139,8 +139,10 @@
}
else if((G.qual & (LR_SHIFTKEY | LR_CTRLKEY)) && (event != PAD0)) {
- /* indicate that this view is inverted */
- G.vd->flag2 |= V3D_OPP_DIRECTION_NAME;
+ /* Indicate that this view is inverted,
+ * but only if it actually _was_ inverted (jobbe) */
+ if (event==PAD7 || event == PAD1 || event == PAD3)
+ G.vd->flag2 |= V3D_OPP_DIRECTION_NAME;
if(event==PAD0) {
/* G.vd->persp= 3; */
@@ -201,8 +203,11 @@
}
}
else {
- /* indicate that this view is not inverted */
- G.vd->flag2 &= ~V3D_OPP_DIRECTION_NAME;
+ /* Indicate that this view is not inverted.
+ * Don't do this for PADMINUS/PADPLUSKEY, though. (jobbe)*/
+ if (event != PADMINUS && event != PADPLUSKEY)
+ G.vd->flag2 &= ~V3D_OPP_DIRECTION_NAME;
+
if(event==PAD7) {
G.vd->viewquat[0]= 1.0;

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
04/b9/3bed561d170d337997d36eef67cb

Event Timeline