porymap
porymap copied to clipboard
Committing map script edits can crash Porymap
- Load the example script below
- 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);
}