bobToolz: load all group entities, was hardcoded list of them

fix crash in DEntity::SelectBrushes after DEntity::LoadSelectedBrushes (which may load brushes from other entities)
generalize loading options; fix ignored loadPatches option; use only visible brushes in Find Duplicates
This commit is contained in:
Garux
2023-09-04 06:38:59 +06:00
parent bf4db60613
commit dea7800d3c
7 changed files with 58 additions and 74 deletions

View File

@@ -215,8 +215,8 @@ public:
const char* classname = Node_getEntity( instance.path().top() )->getClassName();
if ( !strcmp( classname, "worldspawn" ) ) {
world.LoadFromEntity( instance.path().top(), false );
world.RemoveNonCheckBrushes( exclusionList, true );
world.LoadFromEntity( instance.path().top() );
world.RemoveNonCheckBrushes( exclusionList );
world.SaveToFile( pFile );
}
else if ( strstr( classname, "info_" ) ) {