1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-04-17 11:11:08 +00:00
This commit is contained in:
Acamaeda 2020-10-16 18:45:44 -04:00
parent 708c7beeb5
commit dae67952a7
9 changed files with 84 additions and 36 deletions

View file

@ -40,7 +40,7 @@ function drawTree() {
if (!retrieveCanvasData()) return;
ctx.clearRect(0, 0, canvas.width, canvas.height);
for (layer in layers){
if (layers[layer].layerShown() && tmp[layer].branches){
if (tmp[layer].layerShown && tmp[layer].branches){
for (branch in tmp[layer].branches)
{
drawTreeBranch(layer, tmp[layer].branches[branch])