Cleanup: replace C-style casts with functional casts for numeric types
Some changes missed from f68cfd6bb0.
This commit is contained in:
@@ -1583,10 +1583,10 @@ void UI_view2d_smooth_view(const bContext *C,
|
||||
if (changed) {
|
||||
sms.orig_cur = v2d->cur;
|
||||
|
||||
sms.time_allowed = (double)smooth_viewtx / 1000.0;
|
||||
sms.time_allowed = double(smooth_viewtx) / 1000.0;
|
||||
|
||||
/* scale the time allowed the change in view */
|
||||
sms.time_allowed *= (double)fac;
|
||||
sms.time_allowed *= double(fac);
|
||||
|
||||
/* keep track of running timer! */
|
||||
if (v2d->sms == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user