diff options
Diffstat (limited to 'js/tools')
-rwxr-xr-x | js/tools/LineTool.js | 2 | ||||
-rwxr-xr-x | js/tools/TagTool.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/js/tools/LineTool.js b/js/tools/LineTool.js index b2b48383..3f452a06 100755 --- a/js/tools/LineTool.js +++ b/js/tools/LineTool.js | |||
@@ -226,7 +226,7 @@ exports.LineTool = Montage.create(ShapeTool, { | |||
226 | { | 226 | { |
227 | strokeMaterial = Object.create(MaterialsModel.getMaterial(strokeM)); | 227 | strokeMaterial = Object.create(MaterialsModel.getMaterial(strokeM)); |
228 | } | 228 | } |
229 | strokeColor = ShapesController.getMaterialColor(strokeM) || strokeColor; | 229 | strokeColor = ShapesController.getMaterialColor(strokeM) || strokeColor; |
230 | } | 230 | } |
231 | 231 | ||
232 | var world = this.getGLWorld(canvas, this.options.use3D); | 232 | var world = this.getGLWorld(canvas, this.options.use3D); |
diff --git a/js/tools/TagTool.js b/js/tools/TagTool.js index 5520fa89..1339898a 100755 --- a/js/tools/TagTool.js +++ b/js/tools/TagTool.js | |||
@@ -82,6 +82,8 @@ exports.TagTool = Montage.create(DrawingTool, { | |||
82 | // Create the element | 82 | // Create the element |
83 | if(this.options.selectedElement === "custom") { | 83 | if(this.options.selectedElement === "custom") { |
84 | element = document.application.njUtils.make(this.options.customName.value, null, this.application.ninja.currentDocument); | 84 | element = document.application.njUtils.make(this.options.customName.value, null, this.application.ninja.currentDocument); |
85 | if (!NJUtils) NJUtils = require("js/lib/NJUtils").NJUtils; | ||
86 | |||
85 | } else { | 87 | } else { |
86 | element = document.application.njUtils.make(this.options.selectedElement, null, this.application.ninja.currentDocument); | 88 | element = document.application.njUtils.make(this.options.selectedElement, null, this.application.ninja.currentDocument); |
87 | } | 89 | } |