From 7a26281ce345193024e39bd81c64c1891d843d81 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 15 May 2023 15:20:16 -0300 Subject: [PATCH] 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. --- src/app/commands/cmd_cel_properties.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/commands/cmd_cel_properties.cpp b/src/app/commands/cmd_cel_properties.cpp index 7f6f7177c..ab0fa3f8e 100644 --- a/src/app/commands/cmd_cel_properties.cpp +++ b/src/app/commands/cmd_cel_properties.cpp @@ -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());