Fix timing of onMapShifted
This commit is contained in:
parent
6be4f2c946
commit
05fb6c03b7
1 changed files with 1 additions and 1 deletions
|
@ -96,8 +96,8 @@ void MapPixmapItem::shift(int xDelta, int yDelta, bool fromScriptCall) {
|
|||
}
|
||||
|
||||
if (!fromScriptCall && map->layout->blockdata != oldMetatiles) {
|
||||
Scripting::cb_MapShifted(xDelta, yDelta);
|
||||
map->editHistory.push(new ShiftMetatiles(map, oldMetatiles, map->layout->blockdata, actionId_));
|
||||
Scripting::cb_MapShifted(xDelta, yDelta);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue