edit to Ton's recent commit, r34177, only use the far clipping as PET max when not in Ortho view.

This commit is contained in:
2011-01-10 05:40:41 +00:00
parent 5feb46d814
commit 35d261fde0

View File

@@ -741,7 +741,7 @@ int transformEvent(TransInfo *t, wmEvent *event)
case TFM_MODAL_PROPSIZE_UP:
if(t->flag & T_PROP_EDIT) {
t->prop_size*= 1.1f;
if(t->spacetype==SPACE_VIEW3D)
if(t->spacetype==SPACE_VIEW3D && t->persp != RV3D_ORTHO)
t->prop_size= MIN2(t->prop_size, ((View3D *)t->view)->far);
calculatePropRatio(t);
}
@@ -981,7 +981,7 @@ int transformEvent(TransInfo *t, wmEvent *event)
case PADPLUSKEY:
if(event->alt && t->flag & T_PROP_EDIT) {
t->prop_size *= 1.1f;
if(t->spacetype==SPACE_VIEW3D)
if(t->spacetype==SPACE_VIEW3D && t->persp != RV3D_ORTHO)
t->prop_size= MIN2(t->prop_size, ((View3D *)t->view)->far);
calculatePropRatio(t);
}