mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
stop me before I make another ridiculous micro-optimization
This commit is contained in:
parent
7d05598cd7
commit
d4ca2687cd
@ -312,7 +312,7 @@ around_finite(const BoundingVolume **first,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Now take the center of the bounding box as the center of the sphere.
|
// Now take the center of the bounding box as the center of the sphere.
|
||||||
_center = (min_box + max_box) / 2.0;
|
_center = (min_box + max_box) * 0.5;
|
||||||
|
|
||||||
if (any_unknown) {
|
if (any_unknown) {
|
||||||
// If we have any volumes in the list that we don't know what to
|
// If we have any volumes in the list that we don't know what to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user