🐛 Gcode viewer: reset some analysis outputs

We need to reset emptyLayers (and should - for the sake of consistency -
also reset percentageByLayer) after running an analysis because
otherwise old values will stay in there until page reload, causing layers
to not render that actually are not empty but were in any previously
loaded model.
This commit is contained in:
Gina Häußge committed 2023-06-22 16:33:25 +02:00
1 parent fb75e911e6
commit c847ed9d13
1 file changed
+2
@@ -914,6 +914,8 @@ var runAnalyze = function (message) {
layerCnt = 0;
speeds = {extrude: [], retract: [], move: []};
speedsByLayer = {extrude: {}, retract: {}, move: {}};
emptyLayers = [];
percentageByLayer = [];
};
var setOption = function (options) {