Don't clear saved brushes when loading another map

It was not actually necessary to clear the brushes to prevent the crashes. The crashes were fixed by not storing the texture handles for the layers anymore.

Closes #7024.
This commit is contained in:
Robert Müller 2023-08-19 20:46:14 +02:00
parent 7c1a667486
commit a325245397

View file

@ -7838,10 +7838,6 @@ void CEditor::Reset(bool CreateDefault)
UI()->ClosePopupMenus(); UI()->ClosePopupMenus();
m_Map.Clean(); m_Map.Clean();
m_pBrush->Clear();
for(std::shared_ptr<CLayerGroup> &pSavedBrush : m_apSavedBrushes)
pSavedBrush.reset();
// create default layers // create default layers
if(CreateDefault) if(CreateDefault)
{ {