mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix multiple layer editing. Close #2981
This commit is contained in:
parent
933bd8e26c
commit
db9a762f58
|
@ -3480,8 +3480,8 @@ void CEditor::RenderLayers(CUIRect ToolBox, CUIRect View)
|
||||||
bool AllTile = true;
|
bool AllTile = true;
|
||||||
for(int i = 0; AllTile && i < m_lSelectedLayers.size(); i++)
|
for(int i = 0; AllTile && i < m_lSelectedLayers.size(); i++)
|
||||||
{
|
{
|
||||||
if(m_Map.m_lGroups[m_SelectedGroup]->m_lLayers[i]->m_Type == LAYERTYPE_TILES)
|
if(m_Map.m_lGroups[m_SelectedGroup]->m_lLayers[m_lSelectedLayers[i]]->m_Type == LAYERTYPE_TILES)
|
||||||
s_LayerPopupContext.m_aLayers.add((CLayerTiles *)m_Map.m_lGroups[m_SelectedGroup]->m_lLayers[i]);
|
s_LayerPopupContext.m_aLayers.add((CLayerTiles *)m_Map.m_lGroups[m_SelectedGroup]->m_lLayers[m_lSelectedLayers[i]]);
|
||||||
else
|
else
|
||||||
AllTile = false;
|
AllTile = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue