1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-03 06:51:01 +00:00

Fixed resetting

This commit is contained in:
Harley White 2021-06-17 14:40:25 -04:00
parent 9570acb5e3
commit eb890f0cfc
4 changed files with 12 additions and 4 deletions
js/Demo/layers

View file

@ -204,7 +204,7 @@ addLayer("c", {
},
},
doReset(resettingLayer){ // Triggers when this layer is being reset, along with the layer doing the resetting. Not triggered by lower layers resetting, but is by layers on the same row.
if(layers[resettingLayer].row > this.row) layerDataReset(this.layer, ["points"]) // This is actually the default behavior
if(layers[resettingLayer].row > this.row) layerDataReset(this.layer, ["points"])
},
layerShown() {return true}, // Condition for when layer appears on the tree
automate() {