mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
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:
parent
7c1a667486
commit
a325245397
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue