mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 02:32:18 +00:00
convertMapToValve220 removes light flares
This commit is contained in:
parent
a00d6dc9d9
commit
288852224a
1 changed files with 7 additions and 2 deletions
|
@ -2974,8 +2974,6 @@ bool idMapFile::ConvertToValve220Format()
|
|||
}
|
||||
#endif
|
||||
|
||||
// TODO if light purge flare patches
|
||||
|
||||
bool isBrushModel = ( ent->GetNumPrimitives() > 0 ) && ( idStr::Icmp( model.c_str(), name.c_str() ) == 0 );
|
||||
|
||||
// is this oldschool brushes & patches?
|
||||
|
@ -2994,6 +2992,13 @@ bool idMapFile::ConvertToValve220Format()
|
|||
removedOrigin = true;
|
||||
}
|
||||
|
||||
// purge flare patches from lights because we can't select lights in TrenchBroom
|
||||
// that still have primitives
|
||||
if( idStr::Icmp( classname, "light" ) == 0 )
|
||||
{
|
||||
ent->RemovePrimitiveData();
|
||||
}
|
||||
|
||||
// convert brushes
|
||||
for( int i = 0; i < ent->GetNumPrimitives(); i++ )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue