HashLips / hashlips_art_engine

HashLips Art Engine is a tool used to create multiple different instances of artworks based on provided layers.
MIT License
7.17k stars 4.3k forks source link

Error with special character in file names #1207

Open Xfox1 opened 2 years ago

Xfox1 commented 2 years ago

One of my layers was named "clothes", inside this folder I had few files starting with name "T-Shirt", the _dna.split(DNA_DELIMITER)[index] only parses the "T" within the name hence the function constructLayerToDna doesn't select any element and later generates error.

bolshoytoster commented 2 years ago

@Xfox1 yes, you can change DNA_DELIMITER in src/main.js ~line 31: https://github.com/HashLips/hashlips_art_engine/blob/d8ee279043d2d4a8de3bdfac0d89d0e966fb04a2/src/main.js#L30-L32