Merge pull request #2949 from Learath2/dd_pr_edsel

Fix multiple layer selection for groups
This commit is contained in:
Dennis Felsing 2020-09-29 13:50:20 +02:00 committed by GitHub
commit b8760cdce5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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