Blender Git Loki

Git Commits -> Revision 924578c

Revision 924578c by Germano Cavalcante (master)
July 6, 2020, 12:49 (GMT)
Optimization: Don't compute the snap to face on the knife tool twice

Both `knife_find_closest_vert` and `knife_find_closest_edge` call
`knife_find_closest_face`. Thus, running the raycast twice and setting
values like `kcd->curr.bmface` and `kcd->curr.is_space` repeatedly.

So:
- separate `knife_find_closest_face` from `knife_find_closest_vert` and `knife_find_closest_edge`.
- rename `knife_find_closest_vert` to `knife_find_closest_vert_of_face`
- rename `knife_find_closest_edge `to `knife_find_closest_edge_of_face`.
- do not set parameters previously set.

Differential Revision: https://developer.blender.org/D8198

Commit Details:

Full Hash: 924578ce190e3f6c16b45f58ec61f8dff4deb9ac
Parent Commit: 073c426
Lines Changed: +143, -175

1 Modified Path:

/source/blender/editors/mesh/editmesh_knife.c (+143, -175) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021