mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed links between tile layer color envelopes when deleting envelopes
This commit is contained in:
parent
5dd2d189ad
commit
48d21b61a2
|
@ -3798,6 +3798,14 @@ void CEditorMap::DeleteEnvelope(int Index)
|
|||
Layer->m_lQuads[k].m_ColorEnv--;
|
||||
}
|
||||
}
|
||||
else if(m_lGroups[i]->m_lLayers[j]->m_Type == LAYERTYPE_TILES)
|
||||
{
|
||||
CLayerTiles *Layer = static_cast<CLayerTiles *>(m_lGroups[i]->m_lLayers[j]);
|
||||
if(Layer->m_ColorEnv == Index)
|
||||
Layer->m_ColorEnv = -1;
|
||||
if(Layer->m_ColorEnv > Index)
|
||||
Layer->m_ColorEnv--;
|
||||
}
|
||||
|
||||
m_lEnvelopes.remove_index(Index);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue