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:
authorCampbell Barton <ideasman42@gmail.com>2010-08-03 04:56:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-03 04:56:43 +0400
commit66f32bd7f9191702d561ff6995363d9a98084772 (patch)
tree961017902b0bc4bf869a87425ca5a9952df6494d /source/blender/blenkernel/intern/mesh.c
parent15e475339670c4166c495fd9b1a559fac0915995 (diff)
set origin was setting surfaces as 2D curves, added dupli-group support using the dupli's offset value.
Diffstat (limited to 'source/blender/blenkernel/intern/mesh.c')
-rw-r--r--source/blender/blenkernel/intern/mesh.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c
index ab7b0694836..7129ecb1d55 100644
--- a/source/blender/blenkernel/intern/mesh.c
+++ b/source/blender/blenkernel/intern/mesh.c
@@ -330,7 +330,8 @@ void boundbox_mesh(Mesh *me, float *loc, float *size)
if (!loc) loc= mloc;
if (!size) size= msize;
- if(!mesh_bounds(me, min, max)) {
+ INIT_MINMAX(min, max);
+ if(!minmax_mesh(me, min, max)) {
min[0] = min[1] = min[2] = -1.0f;
max[0] = max[1] = max[2] = 1.0f;
}
@@ -1484,11 +1485,10 @@ void mesh_pmv_off(Object *ob, Mesh *me)
}
/* basic vertex data functions */
-int mesh_bounds(Mesh *me, float min[3], float max[3])
+int minmax_mesh(Mesh *me, float min[3], float max[3])
{
int i= me->totvert;
MVert *mvert;
- INIT_MINMAX(min, max);
for(mvert= me->mvert; i--; mvert++) {
DO_MINMAX(mvert->co, min, max);
}
@@ -1512,8 +1512,8 @@ int mesh_center_median(Mesh *me, float cent[3])
int mesh_center_bounds(Mesh *me, float cent[3])
{
float min[3], max[3];
-
- if(mesh_bounds(me, min, max)) {
+ INIT_MINMAX(min, max);
+ if(minmax_mesh(me, min, max)) {
mid_v3_v3v3(cent, min, max);
return 1;
}