Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-06-05 03:53:59 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-06-05 03:53:59 +0400
commitd24a27ca3643e8f9b7bcc5123e56077df9afe005 (patch)
treee5d688cf1a16e2f314215f6b2dcfc284fe8ff32f /source/blender
parent4260804c006d37ff44ce958719b52d2ecc4d38d7 (diff)
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.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/modifiers/intern/MOD_remesh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_remesh.c b/source/blender/modifiers/intern/MOD_remesh.c
index 57966b5824b..2b55471be3d 100644
--- a/source/blender/modifiers/intern/MOD_remesh.c
+++ b/source/blender/modifiers/intern/MOD_remesh.c
@@ -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);
}