Fix #23219: smooth view rotating in top view could generate NaN-values,
causing 3d view drawing to break.
This commit is contained in:
parent
7019de5e30
commit
6faa930369
@ -306,7 +306,10 @@ static int view3d_smoothview_invoke(bContext *C, wmOperator *op, wmEvent *event)
|
||||
if(rv3d->smooth_timer==NULL || rv3d->smooth_timer!=event->customdata)
|
||||
return OPERATOR_PASS_THROUGH;
|
||||
|
||||
step = (rv3d->smooth_timer->duration)/sms->time_allowed;
|
||||
if(sms->time_allowed != 0.0f)
|
||||
step = (rv3d->smooth_timer->duration)/sms->time_allowed;
|
||||
else
|
||||
step = 1.0f;
|
||||
|
||||
/* end timer */
|
||||
if(step >= 1.0f) {
|
||||
|
Loading…
Reference in New Issue
Block a user