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:
parent
9570acb5e3
commit
eb890f0cfc
4 changed files with 12 additions and 4 deletions
js/Demo/layers
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue