Merge pull request #1611 from jamesu/box3f_extend_fix

Fix axis check in Box3F::extend method
This commit is contained in:
Areloch 2016-05-16 09:59:15 -05:00
commit c03615a3dd

View file

@ -415,7 +415,7 @@ inline void Box3F::extend(const Point3F & p)
#define EXTEND_AXIS(AXIS) \
if (p.AXIS < minExtents.AXIS) \
minExtents.AXIS = p.AXIS; \
else if (p.AXIS > maxExtents.AXIS) \
if (p.AXIS > maxExtents.AXIS) \
maxExtents.AXIS = p.AXIS;
EXTEND_AXIS(x)