[LYN-3347] Removed some unused references to CSelectionGroup.
This commit is contained in:
@@ -1091,35 +1091,6 @@ bool CExportManager::AddSelectedEntityObjects()
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool CExportManager::AddSelectedObjects()
|
||||
{
|
||||
CSelectionGroup* pSelection = GetIEditor()->GetSelection();
|
||||
|
||||
int numObjects = pSelection->GetCount();
|
||||
if (numObjects > m_data.m_objects.size())
|
||||
{
|
||||
m_data.m_objects.reserve(numObjects + 1); // +1 for terrain
|
||||
}
|
||||
// First run pipeline to precache geometry
|
||||
m_isPrecaching = true;
|
||||
for (int i = 0; i < numObjects; i++)
|
||||
{
|
||||
AddObject(pSelection->GetObject(i));
|
||||
}
|
||||
|
||||
GetIEditor()->Get3DEngine()->ProposeContentPrecache();
|
||||
|
||||
// Repeat pipeline to collect geometry
|
||||
m_isPrecaching = false;
|
||||
for (int i = 0; i < numObjects; i++)
|
||||
{
|
||||
AddObject(pSelection->GetObject(i));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CExportManager::AddSelectedRegionObjects()
|
||||
{
|
||||
AABB box;
|
||||
@@ -1185,7 +1156,7 @@ bool CExportManager::ExportToFile(const char* filename, bool bClearDataAfterExpo
|
||||
}
|
||||
|
||||
|
||||
bool CExportManager::Export(const char* defaultName, const char* defaultExt, const char* defaultPath, bool isSelectedObjects, bool isSelectedRegionObjects, bool isOccluder, bool bAnimationExport)
|
||||
bool CExportManager::Export(const char* defaultName, const char* defaultExt, const char* defaultPath, [[maybe_unused]] bool isSelectedObjects, bool isSelectedRegionObjects, bool isOccluder, bool bAnimationExport)
|
||||
{
|
||||
m_bAnimationExport = bAnimationExport;
|
||||
|
||||
@@ -1229,10 +1200,6 @@ bool CExportManager::Export(const char* defaultName, const char* defaultExt, con
|
||||
if (m_bAnimationExport || CFileUtil::SelectSaveFile(filters, defaultExt, defaultPath, newFilename))
|
||||
{
|
||||
WaitCursor wait;
|
||||
if (isSelectedObjects)
|
||||
{
|
||||
AddSelectedObjects();
|
||||
}
|
||||
if (isSelectedRegionObjects)
|
||||
{
|
||||
AddSelectedRegionObjects();
|
||||
|
||||
Reference in New Issue
Block a user