convertMapToValve220 removes light flares

This commit is contained in:
Robert Beckebans 2023-11-07 21:11:57 +01:00
parent a00d6dc9d9
commit 288852224a

View file

@ -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++ )
{