qbsp: add _omitbrushes to tell qbsp to discard all brushes in a func_
This commit is contained in:
parent
e2ba8d7b5a
commit
41d125c32e
|
|
@ -1114,6 +1114,11 @@ void Brush_LoadEntity(mapentity_t *dst, const mapentity_t *src, const int hullnu
|
||||||
|
|
||||||
const bool func_illusionary_visblocker = (0 == Q_strcasecmp(classname, "func_illusionary_visblocker"));
|
const bool func_illusionary_visblocker = (0 == Q_strcasecmp(classname, "func_illusionary_visblocker"));
|
||||||
|
|
||||||
|
// _omitbrushes 1 just discards all brushes in the entity.
|
||||||
|
// could be useful for geometry guides, selective compilation, etc.
|
||||||
|
if (atoi(ValueForKey(src, "_omitbrushes")))
|
||||||
|
return;
|
||||||
|
|
||||||
for (i = 0; i < src->nummapbrushes; i++, mapbrush++) {
|
for (i = 0; i < src->nummapbrushes; i++, mapbrush++) {
|
||||||
mapbrush = &src->mapbrush(i);
|
mapbrush = &src->mapbrush(i);
|
||||||
contentflags_t contents = Brush_GetContents(mapbrush);
|
contentflags_t contents = Brush_GetContents(mapbrush);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue