qbsp: add _omitbrushes to tell qbsp to discard all brushes in a func_
This commit is contained in:
parent
f0e3d32ffc
commit
a1609ae1e6
|
|
@ -1298,6 +1298,11 @@ Brush_LoadEntity(mapentity_t *dst, const mapentity_t *src, const int hullnum)
|
||||||
const bool func_illusionary_visblocker =
|
const bool func_illusionary_visblocker =
|
||||||
(0 == Q_strcasecmp(classname, "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