mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
Merge #2994
2994: Fix multiple layer editing r=def- a=Learath2 Idk how I thought this ever worked. Fixes #2981 Co-authored-by: Learath2 <learath2@gmail.com>
This commit is contained in:
commit
1040b59c05
|
@ -3480,8 +3480,8 @@ void CEditor::RenderLayers(CUIRect ToolBox, CUIRect View)
|
|||
bool AllTile = true;
|
||||
for(int i = 0; AllTile && i < m_lSelectedLayers.size(); i++)
|
||||
{
|
||||
if(m_Map.m_lGroups[m_SelectedGroup]->m_lLayers[i]->m_Type == LAYERTYPE_TILES)
|
||||
s_LayerPopupContext.m_aLayers.add((CLayerTiles *)m_Map.m_lGroups[m_SelectedGroup]->m_lLayers[i]);
|
||||
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[m_lSelectedLayers[i]]);
|
||||
else
|
||||
AllTile = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue