mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-06 06:50:07 +00:00
Fix don't create new tiles on tilemap layer in an empty cel with hasTileManagementPlugin.
This commit is contained in:
parent
02b273d933
commit
fae3c6566c
@ -642,6 +642,11 @@ DrawingState* StandbyState::startDrawingState(
|
||||
const DrawingType drawingType,
|
||||
const tools::Pointer& pointer)
|
||||
{
|
||||
if (editor->layer()->isTilemap() &&
|
||||
editor->sprite()->hasTileManagementPlugin() &&
|
||||
!editor->layer()->cel(editor->frame())) {
|
||||
return nullptr;
|
||||
}
|
||||
// We need to clear and redraw the brush boundaries after the
|
||||
// first mouse pressed/point shape if drawn. This is to avoid
|
||||
// graphical glitches (invalid areas in the ToolLoop's src/dst
|
||||
|
Loading…
Reference in New Issue
Block a user