mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix shift-leftclick-drag with empty selection to delete (fixes #5705)
This commit is contained in:
parent
b4914d5d27
commit
a41f1c1def
|
@ -2637,8 +2637,8 @@ void CEditor::DoMapEditor(CUIRect View)
|
||||||
size_t BrushIndex = k;
|
size_t BrushIndex = k;
|
||||||
if(m_Brush.m_vpLayers.size() != NumEditLayers)
|
if(m_Brush.m_vpLayers.size() != NumEditLayers)
|
||||||
BrushIndex = 0;
|
BrushIndex = 0;
|
||||||
if(BrushIndex < m_Brush.m_vpLayers.size())
|
CLayer *pBrush = m_Brush.IsEmpty() ? nullptr : m_Brush.m_vpLayers[BrushIndex];
|
||||||
apEditLayers[k]->FillSelection(m_Brush.IsEmpty(), m_Brush.m_vpLayers[BrushIndex], r);
|
apEditLayers[k]->FillSelection(m_Brush.IsEmpty(), pBrush, r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue