mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
Fix for province pattern painting bug and moved the color picker forward. (#362)
* Fix for 3d heightmap / 3d view conflict * Fix for provinces painting patterns over color and color picker now in front of edit window
This commit is contained in:
parent
257cf11986
commit
41643ee5ac
2 changed files with 2 additions and 1 deletions
|
|
@ -644,7 +644,7 @@ function editProvinces() {
|
|||
const provinceNew = +selected.dataset.id;
|
||||
const state = pack.provinces[provinceNew].state;
|
||||
const fill = pack.provinces[provinceNew].color || "#ffffff";
|
||||
const stroke = d3.color(fill).darker(.2).hex();
|
||||
const stroke = fill.startsWith("#") ? d3.color(fill).darker(.2).hex() : "#000000";
|
||||
|
||||
selection.forEach(i => {
|
||||
if (!pack.cells.state[i] || pack.cells.state[i] !== state) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue