mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 04:33:04 -04:00
allow scales to zero for BoundingLines
This commit is contained in:
parent
fdda2ae7b6
commit
a16f99c74c
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user