This commit is contained in:
Joilnen Leite
2008-10-22 05:33:45 +00:00
parent 18f2d484d9
commit 0026247ee2
5 changed files with 13 additions and 12 deletions

View File

@@ -148,8 +148,8 @@ typedef struct View3D {
/* last view */
float lviewquat[4];
short lpersp, lview;
short lastview_set;
short pad5;
short pad5, pad6;
} View3D;

View File

@@ -212,6 +212,14 @@ static void do_view3d_view_camerasmenu(void *arg, int event)
persptoetsen(PAD0);
G.qual &= ~LR_CTRLKEY;
} else {
/* store settings of current view before allowing overwriting with camera view */
/* this is a copy of the code in toets.c */
if(G.vd->persp != V3D_CAMOB) {
QUATCOPY(G.vd->lviewquat, G.vd->viewquat);
G.vd->lview= G.vd->view;
G.vd->lpersp= G.vd->persp;
}
for( base = FIRSTBASE; base; base = base->next ) {
if (base->object->type == OB_CAMERA) {
i++;

View File

@@ -292,17 +292,15 @@ void persptoetsen(unsigned short event)
}
else if(event==PAD0) {
/* lastview - */
if(G.vd->lastview_set==0) {
if(G.vd->persp != V3D_CAMOB) {
/* store settings of current view before allowing overwriting with camera view */
QUATCOPY(G.vd->lviewquat, G.vd->viewquat);
G.vd->lview= G.vd->view;
G.vd->lpersp= G.vd->persp;
G.vd->lastview_set= 1;
}
else {
/* return to settings of last view */
axis_set_view(G.vd->lviewquat[0], G.vd->lviewquat[1], G.vd->lviewquat[2], G.vd->lviewquat[3], G.vd->lview, G.vd->lpersp);
G.vd->lastview_set= 0;
}
if(G.qual==LR_ALTKEY) {

View File

@@ -894,11 +894,6 @@ void viewmove(int mode)
return;
}
/* clear lastview flag (used to return to previous view when
* pressing Pad0 again after entering Camera view)
*/
if (G.vd->lastview_set) G.vd->lastview_set= 0;
// dist correction from other movement devices
if((dz_flag)||G.vd->dist==0) {
dz_flag = 0;

View File

@@ -413,10 +413,10 @@ endif
export NAN_PARANOID ?= true
# l10n
export INTERNATIONAL ?= true
export INTERNATIONAL ?= false
# enable freetype2 support for text objects
export WITH_FREETYPE2 ?= true
export WITH_FREETYPE2 ?= false
export WITH_BINRELOC ?= true