diff options
Diffstat (limited to 'js/tools/PenTool.js')
-rwxr-xr-x | js/tools/PenTool.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js index 0661c3ea..aba25ca9 100755 --- a/js/tools/PenTool.js +++ b/js/tools/PenTool.js | |||
@@ -570,7 +570,7 @@ exports.PenTool = Montage.create(ShapeTool, { | |||
570 | if (!canvas) { | 570 | if (!canvas) { |
571 | var newCanvas = null; | 571 | var newCanvas = null; |
572 | newCanvas = NJUtils.makeNJElement("canvas", "Subpath", "shape", {"data-RDGE-id": NJUtils.generateRandom()}, true); | 572 | newCanvas = NJUtils.makeNJElement("canvas", "Subpath", "shape", {"data-RDGE-id": NJUtils.generateRandom()}, true); |
573 | var elementModel = TagTool.makeElement(parseInt(w), parseInt(h), planeMat, midPt, newCanvas); | 573 | var elementModel = TagTool.makeElement(parseInt(w), parseInt(h), planeMat, midPt, newCanvas, true); |
574 | ElementMediator.addElements(newCanvas, elementModel.data, false); | 574 | ElementMediator.addElements(newCanvas, elementModel.data, false); |
575 | 575 | ||
576 | // create all the GL stuff | 576 | // create all the GL stuff |
@@ -905,6 +905,7 @@ exports.PenTool = Montage.create(ShapeTool, { | |||
905 | } | 905 | } |
906 | }, | 906 | }, |
907 | 907 | ||
908 | var elementModel = TagTool.makeElement(parseInt(w), parseInt(h), planeMat, midPt, newCanvas, true); | ||
908 | 909 | ||
909 | BuildSecondCtrlPoint:{ | 910 | BuildSecondCtrlPoint:{ |
910 | value: function(p0, p2, p3) { | 911 | value: function(p0, p2, p3) { |