porymap icon indicating copy to clipboard operation
porymap copied to clipboard

Committing map script edits can crash Porymap

Open GriffinRichards opened this issue 1 year ago • 0 comments

  1. Load the example script below
  2. Edit any map block

With the steps above Porymap will crash in MapPixmapItem::paintNormal trying to push new edit history. This will occur at least as far back as the 4.5.0 release (haven't checked beyond that yet). A number of different API functions that commit map changes can do this, sometimes only after doing some Redo/Undo to hit a bad commit.

export function onBlockChanged(x, y, prevBlock, newBlock) {
    map.setWidth(map.getWidth() + 1);
}

GriffinRichards avatar Oct 12 '22 13:10 GriffinRichards