mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix shift + left click in editor (fixes #5626)
This commit is contained in:
parent
1132a5495b
commit
de087bd80a
|
@ -2636,7 +2636,8 @@ void CEditor::DoMapEditor(CUIRect View)
|
|||
size_t BrushIndex = k;
|
||||
if(m_Brush.m_vpLayers.size() != NumEditLayers)
|
||||
BrushIndex = 0;
|
||||
apEditLayers[k]->FillSelection(m_Brush.IsEmpty(), m_Brush.m_vpLayers[BrushIndex], r);
|
||||
if(BrushIndex < m_Brush.m_vpLayers.size())
|
||||
apEditLayers[k]->FillSelection(m_Brush.IsEmpty(), m_Brush.m_vpLayers[BrushIndex], r);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue