Added back a few lines that were accidentally chopped out when fixing pad0 view feature. This means that the grid is drawn correctly (i.e. not shown) when the view is rotated using the numpad up/down/left/right keys.
This commit is contained in:
@@ -375,6 +375,7 @@ void persptoetsen(unsigned short event)
|
||||
q1[1]= q1[2]= 0.0;
|
||||
q1[3]= si;
|
||||
QuatMul(G.vd->viewquat, G.vd->viewquat, q1);
|
||||
G.vd->view= 0;
|
||||
}
|
||||
if(event==PAD2 || event==PAD8) {
|
||||
/* horizontal axis */
|
||||
@@ -389,6 +390,7 @@ void persptoetsen(unsigned short event)
|
||||
q1[2]*= si;
|
||||
q1[3]*= si;
|
||||
QuatMul(G.vd->viewquat, G.vd->viewquat, q1);
|
||||
G.vd->view= 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user