Fix multiple layer selection for groups

This commit is contained in:
Learath 2020-09-29 13:30:54 +03:00
parent 7432f569e2
commit 88c054261a

View file

@ -3351,7 +3351,8 @@ void CEditor::RenderLayers(CUIRect ToolBox, CUIRect View)
if((Input()->KeyIsPressed(KEY_LSHIFT) || Input()->KeyIsPressed(KEY_RSHIFT)) && m_SelectedGroup == g)
{
for(int i = 1; i < m_Map.m_lGroups[g]->m_lLayers.size(); i++)
m_lSelectedLayers.clear();
for(int i = 0; i < m_Map.m_lGroups[g]->m_lLayers.size(); i++)
{
m_lSelectedLayers.add(i);
}