Fix remesh output changing when input is moved relative to origin.
Fixes bug [#31626] Remesh modifier generates different results depending on object origin position Was incorrectly initializing bounding box min/max to zero, now uses INIT_MINMAX.
This commit is contained in:
@@ -87,6 +87,7 @@ static void init_dualcon_mesh(DualConInput *mesh, DerivedMesh *dm)
|
||||
mesh->face_stride = sizeof(MFace);
|
||||
mesh->totface = dm->getNumTessFaces(dm);
|
||||
|
||||
INIT_MINMAX(mesh->min, mesh->max);
|
||||
dm->getMinMax(dm, mesh->min, mesh->max);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user