advra / art-engine

An advanced fork of the HashLips Art Engine with additional features to generate complex art from provided layers using the familiar Hashlips setup.
MIT License
0 stars 0 forks source link

Fixed bug where z ordering was not parsing correctly in the layer name #4

Closed advra closed 1 year ago

advra commented 1 year ago

Layers with z ordering defined were not being parsed correctly. Valid inputs such as z-10 would result in parseInt("z-10") which would always evaluate to null. Instead the fix removes the z character before attempting to parse an int value.