From da3ab2b0e6940b07d004eaefcfcb3e47850593a4 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Mon, 15 Jan 2018 15:43:58 +0100 Subject: [PATCH] Added default line to gcode --- src/constants.js | 1 + src/sliceActions/helpers/GCode.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/constants.js b/src/constants.js index 3e117b5..e08c4ca 100644 --- a/src/constants.js +++ b/src/constants.js @@ -1 +1,2 @@ export const PRECISION = 0.01; +export const VERSION = '0.0.18'; diff --git a/src/sliceActions/helpers/GCode.js b/src/sliceActions/helpers/GCode.js index 4683c10..cf2fbb4 100644 --- a/src/sliceActions/helpers/GCode.js +++ b/src/sliceActions/helpers/GCode.js @@ -1,5 +1,5 @@ import { Vector2 } from 'three/src/math/Vector2.js'; -import { PRECISION } from '../../constants.js'; +import { PRECISION, VERSION } from '../../constants.js'; export const MOVE = 'G'; export const M_COMMAND = 'M'; @@ -14,7 +14,7 @@ export default class { constructor(nozzleToFilamentRatio) { this._nozzleToFilamentRatio = nozzleToFilamentRatio; - this._gcode = []; + this._gcode = [`; Generated with Doodle3D Slicer V${VERSION}`]; this._currentValues = {}; this._nozzlePosition = new Vector2(0, 0); this._extruder = 0.0;