[DF-1005] Fix heightmap editor undo/redo issue