Change all selected cel properties when we select frames/layers (fix #3807)

The Cel Properties dialog wasn't working right when we selected a
range of layers or frames.
This commit is contained in:
David Capello 2023-05-15 15:20:16 -03:00
parent c902c563e3
commit 7a26281ce3

View File

@ -209,8 +209,10 @@ private:
Tx tx(writer.context(), "Set Cel Properties");
DocRange range;
if (m_range.enabled())
if (m_range.enabled()) {
range = m_range;
range.convertToCels(m_document->sprite());
}
else {
range.startRange(m_cel->layer(), m_cel->frame(), DocRange::kCels);
range.endRange(m_cel->layer(), m_cel->frame());