Weld Modifier: Disable the KD Tree solution
This solution is causing the modifier regression test to fail. Also fix a mistake to allocate `vert_dest_map` twice.
This commit is contained in:
parent
64583f3e8d
commit
d5a6b3b18c
Notes:
blender-bot
2023-02-14 01:07:44 +01:00
Referenced by commit 682e68b6ea
, Cleanup: silence [-Wshadow] warnings
|
@ -29,7 +29,7 @@
|
|||
|
||||
//#define USE_WELD_DEBUG
|
||||
//#define USE_WELD_NORMALS
|
||||
//#define USE_BVHTREEKDOP
|
||||
#define USE_BVHTREEKDOP
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
|
@ -1687,7 +1687,6 @@ static Mesh *weldModifier_doWeld(WeldModifierData *wmd, const ModifierEvalContex
|
|||
}
|
||||
#else
|
||||
{
|
||||
vert_dest_map = MEM_malloc_arrayN(totvert, sizeof(*vert_dest_map), __func__);
|
||||
KDTree_3d *tree = BLI_kdtree_3d_new(totvert);
|
||||
for (i = 0; i < totvert; i++) {
|
||||
if (!(v_mask && !BLI_BITMAP_TEST(v_mask, i))) {
|
||||
|
|
Loading…
Reference in New Issue