Skip to content

Commit

Permalink
default value of heightmap colormaps set to the right name. and added…
Browse files Browse the repository at this point in the history
… a fallback to the switch case
  • Loading branch information
DustSwiffer committed Nov 28, 2023
1 parent e9017ec commit d1372b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions src/store/gui/heightmap/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@ export const getters: GetterTree<HeightmapState, any> = {
'#a50026',
]
default:
return [
'#313695',
'#4575b4',
'#74add1',
'#abd9e9',
'#e0f3f8',
'#ffffbf',
'#fee090',
'#fdae61',
'#f46d43',
'#d73027',
'#a50026',
]
break
}
return []
Expand Down
2 changes: 1 addition & 1 deletion src/store/gui/heightmap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { actions } from './actions'

export const getDefaultState = (): HeightmapState => {
return {
activecolorscheme: 'default',
activecolorscheme: 'portland',
}
}

Expand Down

0 comments on commit d1372b7

Please sign in to comment.