[DF-31] Fix tilemask update in heightmap editor