Cleanup: Move weld modifier to C++

This moves `MOD_weld.cc` to C++, fixing compiler warnings
coming from the change. It also goes a little bit further and converts
the code to use C++ data structures: `Span`, `Array`, and `Vector`.
This makes the code more shorter and easier to reason about, and
makes memory maneagement more automatic.

Differential Revision: https://developer.blender.org/D13618
This commit is contained in:
Hans Goudey 2021-12-18 13:42:48 -06:00
parent 491b9cd2b9
commit 8a91673562
2 changed files with 256 additions and 327 deletions

View File

@ -114,7 +114,7 @@ set(SRC
intern/MOD_weightvgedit.c
intern/MOD_weightvgmix.c
intern/MOD_weightvgproximity.c
intern/MOD_weld.c
intern/MOD_weld.cc
intern/MOD_wireframe.c
MOD_modifiertypes.h