Fix: Knife tool does not interpolate vertex customdata in interior cuts #107367

3 Commits

Author SHA1 Message Date
Philipp Oeser b3e9882cc2 address review comment (use less space and dont leave unassigned) 2023-04-27 09:16:13 +02:00
Philipp Oeser c3f6bb4f7f check both ldata & vdata separately for interpolation capabilities.
CustomData_has_interp() should be enough here (changed from
CustomData_has_math())
2023-04-26 14:41:37 +02:00
Philipp Oeser 7e19d7570a Fix: Knife tool does not interpolate vertex customdata in interior cuts
Using the Knife tool, making cuts that split an edge exactly interpolate
fine for vertex customdata (weights or attributes on the vertex domain)
due to `BM_edge_split` taking care of data layers from the edge and
vertex domain (also mdisps -- which unfortunately dont seem to work
well, but that is for another patch...).

However, making cuts _inside_ a face though dont interpolate at all
(giving default values on new vertices).

With this patch, also interpolate vertex customdata in
`BM_face_split_edgenet`.
2023-04-26 12:57:00 +02:00