allow scales to zero for BoundingLines

This commit is contained in:
David Rose 2001-07-09 23:14:14 +00:00
parent fdda2ae7b6
commit a16f99c74c

View File

@ -43,7 +43,11 @@ xform(const LMatrix4f &mat) {
if (!is_empty() && !is_infinite()) {
_origin = _origin * mat;
_vector = _vector * mat;
_vector.normalize();
if (!_vector.normalize()) {
// If we just scaled the line down to nothing, it becomes an
// empty volume.
_flags |= F_empty;
}
}
}