From 02e8d97eed78f2f57266f7bddcf621a3a2aaf7a8 Mon Sep 17 00:00:00 2001 From: Gaspar Capello Date: Tue, 16 Apr 2024 14:50:33 -0300 Subject: [PATCH] Fix drop pixels when drag/modifying tag range while transform state is active (fix #4375) Before this fix, the "cannot modify sprite/cannot lock sprite" message was displayed instead of just dropping pixels. Co-authored-by: David Capello --- src/app/ui/timeline/timeline.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/ui/timeline/timeline.cpp b/src/app/ui/timeline/timeline.cpp index ea1ce1842..35186bf5e 100644 --- a/src/app/ui/timeline/timeline.cpp +++ b/src/app/ui/timeline/timeline.cpp @@ -27,6 +27,7 @@ #include "app/doc_range_ops.h" #include "app/doc_undo.h" #include "app/i18n/strings.h" +#include "app/inline_command_execution.h" #include "app/loop_tag.h" #include "app/modules/gfx.h" #include "app/modules/gui.h" @@ -1390,6 +1391,7 @@ bool Timeline::onProcessMessage(Message* msg) if ((m_state == STATE_RESIZING_TAG_LEFT && tag->fromFrame() != m_resizeTagData.from) || (m_state == STATE_RESIZING_TAG_RIGHT && tag->toFrame() != m_resizeTagData.to)) { try { + InlineCommandExecution inlineCmd(m_context); ContextWriter writer(m_context); Tx tx(writer, Strings::commands_FrameTagProperties()); tx(new cmd::SetTagRange(