have notriggermodels output mins/maxs for hull 0 (#446)

This commit is contained in:
Justin 2025-01-31 18:01:54 -08:00 committed by GitHub
parent fc003c64cd
commit 2bbcaed34b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -1094,8 +1094,10 @@ static void ProcessEntity(mapentity_t &entity, hull_index_t hullnum)
// we're discarding the brush
if (discarded_trigger) {
entity.epairs.set("mins", fmt::to_string(entity.bounds.mins()));
entity.epairs.set("maxs", fmt::to_string(entity.bounds.maxs()));
if (!hullnum.value_or(0)) {
entity.epairs.set("mins", fmt::to_string(entity.bounds.mins()));
entity.epairs.set("maxs", fmt::to_string(entity.bounds.maxs()));
}
return;
}