mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
minor cosmetic change
This commit is contained in:
parent
89b92f1f19
commit
4f59ca4705
@ -1122,30 +1122,26 @@ make_bounds() const {
|
|||||||
LPoint3f nll, nlr, nul, nur;
|
LPoint3f nll, nlr, nul, nur;
|
||||||
LPoint2f corner;
|
LPoint2f corner;
|
||||||
|
|
||||||
corner[0] = -1.0f; corner[1] = 1.0f;
|
|
||||||
|
|
||||||
// Upper left.
|
// Upper left.
|
||||||
|
corner.set(-1.0f, 1.0f);
|
||||||
if (!extrude(corner, nul, ful)) {
|
if (!extrude(corner, nul, ful)) {
|
||||||
return (BoundingVolume *)NULL;
|
return (BoundingVolume *)NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
corner[0] = 1.0f; corner[1] = 1.0f;
|
|
||||||
|
|
||||||
// Upper right.
|
// Upper right.
|
||||||
|
corner.set(1.0f, 1.0f);
|
||||||
if (!extrude(corner, nur, fur)) {
|
if (!extrude(corner, nur, fur)) {
|
||||||
return (BoundingVolume *)NULL;
|
return (BoundingVolume *)NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
corner[0] = 1.0f; corner[1] = -1.0f;
|
|
||||||
|
|
||||||
// Lower right.
|
// Lower right.
|
||||||
|
corner.set(1.0f, -1.0f);
|
||||||
if (!extrude(corner, nlr, flr)) {
|
if (!extrude(corner, nlr, flr)) {
|
||||||
return (BoundingVolume *)NULL;
|
return (BoundingVolume *)NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
corner[0] = -1.0f; corner[1] = -1.0f;
|
|
||||||
|
|
||||||
// Lower left.
|
// Lower left.
|
||||||
|
corner.set(-1.0f, -1.0f);
|
||||||
if (!extrude(corner, nll, fll)) {
|
if (!extrude(corner, nll, fll)) {
|
||||||
return (BoundingVolume *)NULL;
|
return (BoundingVolume *)NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user