Skip to content

Commit

Permalink
tile-set: remove empty tile
Browse files Browse the repository at this point in the history
  • Loading branch information
macabeus committed Jun 8, 2019
1 parent 31ef3cb commit 7c76399
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions brush/src/components/TileSet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
mapObjIndexed,
uniq,
values,
reject,
} from 'ramda'
import { fromSchemeGetTileNameById } from 'scissors'
import tileNameToColor from '../../constants/tileNameToColor'
Expand Down Expand Up @@ -49,6 +50,7 @@ const TileSet = ({ setToolState }) => {
const groups =
tilemap
|> uniq
|> reject(tileId => tileId === 0x00)
|> map(tileId => ({
id: tileId,
name: getTileNameById(tileId),
Expand Down

0 comments on commit 7c76399

Please sign in to comment.