Fix don't create new tiles on tilemap layer in an empty cel with hasTileManagementPlugin.

This commit is contained in:
Gaspar Capello 2023-02-17 17:55:58 -03:00 committed by David Capello
parent 02b273d933
commit fae3c6566c

View File

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