Fix multiple layer editing. Close #2981

This commit is contained in:
Learath2 2020-10-03 18:35:38 +02:00
parent 933bd8e26c
commit db9a762f58

View file

@ -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;
}