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:
Diffstat (limited to 'source/blender/blenlib/intern/pbvh.c')
-rw-r--r--source/blender/blenlib/intern/pbvh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/pbvh.c b/source/blender/blenlib/intern/pbvh.c
index 14f9001814c..9b05f0fc976 100644
--- a/source/blender/blenlib/intern/pbvh.c
+++ b/source/blender/blenlib/intern/pbvh.c
@@ -189,8 +189,8 @@ static void BB_expand(BB *bb, float co[3])
{
int i;
for (i = 0; i < 3; ++i) {
- bb->bmin[i] = MIN2(bb->bmin[i], co[i]);
- bb->bmax[i] = MAX2(bb->bmax[i], co[i]);
+ bb->bmin[i] = minf(bb->bmin[i], co[i]);
+ bb->bmax[i] = maxf(bb->bmax[i], co[i]);
}
}
@@ -199,8 +199,8 @@ static void BB_expand_with_bb(BB *bb, BB *bb2)
{
int i;
for (i = 0; i < 3; ++i) {
- bb->bmin[i] = MIN2(bb->bmin[i], bb2->bmin[i]);
- bb->bmax[i] = MAX2(bb->bmax[i], bb2->bmax[i]);
+ bb->bmin[i] = minf(bb->bmin[i], bb2->bmin[i]);
+ bb->bmax[i] = maxf(bb->bmax[i], bb2->bmax[i]);
}
}