summaryrefslogtreecommitdiff
path: root/gui.js
diff options
context:
space:
mode:
authorCode WvS <code-wvs@quantentunnel.de>2015-03-01 17:48:36 +0100
committerCode WvS <code-wvs@quantentunnel.de>2015-03-01 17:48:36 +0100
commit2a6993efae6e961660ecd2aa1f999f10aadf94f4 (patch)
tree0e17ff542086f2d83c00a1bb63bdb577ece4bd97 /gui.js
parent5b615ebf5cfc4f6aa6c5930dcc7ec7e211e883df (diff)
downloadsnap-yow-2a6993efae6e961660ecd2aa1f999f10aadf94f4.tar.gz
snap-yow-2a6993efae6e961660ecd2aa1f999f10aadf94f4.zip
draw pen trails; expand to polygons automatically
Diffstat (limited to 'gui.js')
-rw-r--r--gui.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui.js b/gui.js
index 7c4315c..9972527 100644
--- a/gui.js
+++ b/gui.js
@@ -2830,6 +2830,10 @@ IDE_Morph.prototype.newProject = function () {
window.map.removeLayer(window.spriteGroup);
}
window.spriteGroup = L.layerGroup().addTo(window.map);
+ if (window.map.hasLayer(window.penTrails)) {
+ window.map.removeLayer(window.penTrails);
+ }
+ window.penTrails = L.layerGroup().addTo(window.map);
this.currentSprite = new SpriteMorph(this.globalVariables);
this.sprites = new List([this.currentSprite]);