Page MenuHome

Speedup init when propotionally edit.
AbandonedPublic

Authored by George Vogiatzis (Gvgeo) on May 28 2019, 1:14 PM.

Details

Summary

Don't use matrix transformation if scale is 1, when calculating distance to the nearest element.
Roughly 3x speed up.

Diff Detail

Event Timeline

Germano Cavalcante (mano-wii) requested changes to this revision.Dec 24 2019, 10:35 PM
Germano Cavalcante (mano-wii) added inline comments.
source/blender/editors/transform/transform_conversions.c
261

See bool is_one_v3(const float v[3]) from BLI_math.h.
Also I would prefer a more descriptive variable name like: is_uniform_scale_one.

290

It would be nice to have a comment on why this is important.

This revision now requires changes to proceed.Dec 24 2019, 10:35 PM

Does not apply anymore.