diff options
| author | Code WvS <code-wvs@quantentunnel.de> | 2015-03-01 17:48:36 +0100 |
|---|---|---|
| committer | Code WvS <code-wvs@quantentunnel.de> | 2015-03-01 17:48:36 +0100 |
| commit | 2a6993efae6e961660ecd2aa1f999f10aadf94f4 (patch) | |
| tree | 0e17ff542086f2d83c00a1bb63bdb577ece4bd97 /gui.js | |
| parent | 5b615ebf5cfc4f6aa6c5930dcc7ec7e211e883df (diff) | |
| download | snap-yow-2a6993efae6e961660ecd2aa1f999f10aadf94f4.tar.gz snap-yow-2a6993efae6e961660ecd2aa1f999f10aadf94f4.zip | |
draw pen trails; expand to polygons automatically
Diffstat (limited to 'gui.js')
| -rw-r--r-- | gui.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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]); |
