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 <david@igara.com>
This commit is contained in:
Gaspar Capello 2024-04-16 14:50:33 -03:00 committed by David Capello
parent f4b8effd52
commit 02e8d97eed

View File

@ -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(