moving from camera view with home and astrix keys now uses smooth view (This should be the last one).

Fix for own error from a wile ago Numpad-Astrix would set to size view of selected faces, rather then front.
This commit is contained in:
2007-04-19 15:02:54 +00:00
parent 0f2e46d2be
commit 4116599c1f
3 changed files with 57 additions and 16 deletions

View File

@@ -2315,7 +2315,7 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
single_user();
}
}
break;
case VKEY:
if((G.qual==LR_SHIFTKEY)) {
@@ -2427,12 +2427,12 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
if(G.qual==0) {
if(ob) {
if ((G.obedit) && (G.obedit->type == OB_MESH)) {
editmesh_align_view_to_selected(G.vd, 2);
editmesh_align_view_to_selected(G.vd, 3);
}
else if (G.f & G_FACESELECT) {
if(ob->type==OB_MESH) {
Mesh *me= ob->data;
faceselect_align_view_to_selected(G.vd, me, 2);
faceselect_align_view_to_selected(G.vd, me, 3);
}
}
else