Animation: Improve drawing of locked FCurves #106052
|
@ -234,7 +234,7 @@ static void draw_locked_keyframe_vertices(FCurve *fcu,
|
|||
scale[0] /= vertex_size;
|
||||
/* Dividing by the unit scale is needed to display euler correctly (internally they are radians
|
||||
* but displayed as degrees) and all curves when normalization is turned on. */
|
||||
scale[1] /= vertex_size / unit_scale;
|
||||
scale[1] = scale[1] / vertex_size * unit_scale;
|
||||
|
||||
|
||||
set_fcurve_vertex_color(fcu, false);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
This is the same as:
which is the same as:
which would remove a division from the computations. And since multiplication is faster than division, give a minute performance gain.
I'll leave it up to you to decide on which one you want (slightly longer but faster code, vs. slightly shorter and likely just as fast because the compiler can optimize). I don't have any strong feelings here.