remove mapface_t::visible, it's unused
This commit is contained in:
parent
834838ed72
commit
74dcb1454e
|
|
@ -47,7 +47,6 @@ struct mapface_t
|
||||||
int texinfo = 0;
|
int texinfo = 0;
|
||||||
parser_source_location line;
|
parser_source_location line;
|
||||||
bool bevel = false;
|
bool bevel = false;
|
||||||
bool visible = false;
|
|
||||||
winding_t winding; // winding used to calculate bevels
|
winding_t winding; // winding used to calculate bevels
|
||||||
int16_t lmshift;
|
int16_t lmshift;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2214,8 +2214,6 @@ inline void CalculateBrushBounds(mapbrush_t &ob)
|
||||||
ob.bounds = {};
|
ob.bounds = {};
|
||||||
|
|
||||||
for (size_t i = 0; i < ob.faces.size(); i++) {
|
for (size_t i = 0; i < ob.faces.size(); i++) {
|
||||||
ob.faces[i].visible = false;
|
|
||||||
|
|
||||||
const auto &plane = ob.faces[i].get_plane();
|
const auto &plane = ob.faces[i].get_plane();
|
||||||
std::optional<winding_t> w = BaseWindingForPlane(plane);
|
std::optional<winding_t> w = BaseWindingForPlane(plane);
|
||||||
|
|
||||||
|
|
@ -2232,7 +2230,6 @@ inline void CalculateBrushBounds(mapbrush_t &ob)
|
||||||
|
|
||||||
if (w) {
|
if (w) {
|
||||||
ob.faces[i].winding = w.value();
|
ob.faces[i].winding = w.value();
|
||||||
ob.faces[i].visible = true;
|
|
||||||
for (auto &p : w.value()) {
|
for (auto &p : w.value()) {
|
||||||
ob.bounds += p;
|
ob.bounds += p;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue