Replaced the round() call with floor(0.5 + ).
Apparently MSVC doesnt have it...
This commit is contained in:
parent
1ef0359bc4
commit
ec9ed88d28
@ -4384,7 +4384,7 @@ void nextkey(ListBase *elems, int dir)
|
||||
|
||||
static int float_to_frame (float frame)
|
||||
{
|
||||
int to= (int) round( frame/G.scene->r.framelen );
|
||||
int to= (int) floor(0.5 + frame/G.scene->r.framelen );
|
||||
|
||||
return to;
|
||||
}
|
||||
|
@ -214,7 +214,7 @@ void nextprev_timeline_marker(short dir)
|
||||
|
||||
static int float_to_frame(float frame)
|
||||
{
|
||||
int to= (int) round( frame/G.scene->r.framelen );
|
||||
int to= (int) floor(0.5 + frame/G.scene->r.framelen );
|
||||
|
||||
return to;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user