mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-28 06:21:25 +00:00
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:
parent
f4b8effd52
commit
02e8d97eed
@ -27,6 +27,7 @@
|
|||||||
#include "app/doc_range_ops.h"
|
#include "app/doc_range_ops.h"
|
||||||
#include "app/doc_undo.h"
|
#include "app/doc_undo.h"
|
||||||
#include "app/i18n/strings.h"
|
#include "app/i18n/strings.h"
|
||||||
|
#include "app/inline_command_execution.h"
|
||||||
#include "app/loop_tag.h"
|
#include "app/loop_tag.h"
|
||||||
#include "app/modules/gfx.h"
|
#include "app/modules/gfx.h"
|
||||||
#include "app/modules/gui.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) ||
|
if ((m_state == STATE_RESIZING_TAG_LEFT && tag->fromFrame() != m_resizeTagData.from) ||
|
||||||
(m_state == STATE_RESIZING_TAG_RIGHT && tag->toFrame() != m_resizeTagData.to)) {
|
(m_state == STATE_RESIZING_TAG_RIGHT && tag->toFrame() != m_resizeTagData.to)) {
|
||||||
try {
|
try {
|
||||||
|
InlineCommandExecution inlineCmd(m_context);
|
||||||
ContextWriter writer(m_context);
|
ContextWriter writer(m_context);
|
||||||
Tx tx(writer, Strings::commands_FrameTagProperties());
|
Tx tx(writer, Strings::commands_FrameTagProperties());
|
||||||
tx(new cmd::SetTagRange(
|
tx(new cmd::SetTagRange(
|
||||||
|
Loading…
Reference in New Issue
Block a user