set omit properly
This commit is contained in:
parent
7422776f38
commit
7fad0019c2
13
qbsp/map.cc
13
qbsp/map.cc
|
|
@ -2209,7 +2209,9 @@ bool ParseEntity(parser_t &parser, mapentity_t &entity)
|
||||||
|
|
||||||
// _omitbrushes 1 just discards all brushes in the entity.
|
// _omitbrushes 1 just discards all brushes in the entity.
|
||||||
// could be useful for geometry guides, selective compilation, etc.
|
// could be useful for geometry guides, selective compilation, etc.
|
||||||
bool omit = entity.epairs.get_int("_omitbrushes");
|
bool omit = false;
|
||||||
|
|
||||||
|
bool first_brush = false;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if (!parser.parse_token())
|
if (!parser.parse_token())
|
||||||
|
|
@ -2217,8 +2219,13 @@ bool ParseEntity(parser_t &parser, mapentity_t &entity)
|
||||||
if (parser.token == "}")
|
if (parser.token == "}")
|
||||||
break;
|
break;
|
||||||
else if (parser.token == "{") {
|
else if (parser.token == "{") {
|
||||||
// once we run into the first brush, set up textures state.
|
if (!first_brush) {
|
||||||
EnsureTexturesLoaded();
|
// once we run into the first brush, set up textures state.
|
||||||
|
EnsureTexturesLoaded();
|
||||||
|
first_brush = true;
|
||||||
|
|
||||||
|
omit = entity.epairs.get_int("_omitbrushes");
|
||||||
|
}
|
||||||
|
|
||||||
if (omit) {
|
if (omit) {
|
||||||
// skip until a } since we don't care to load brushes on this entity
|
// skip until a } since we don't care to load brushes on this entity
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue