aboutsummaryrefslogtreecommitdiff
path: root/js/tools/BrushTool.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-02-16 23:12:11 -0800
committerJose Antonio Marquez2012-02-16 23:12:11 -0800
commite404c691b84ca8fd1ab17fc6187bccb3f94258fb (patch)
tree7547d267a629ac717553e98e34a4d02543d529b7 /js/tools/BrushTool.js
parentcfc2a432323d4620b1f4ca2061bbe57f46e7eaf7 (diff)
parente67d1f472dab28b4ff6afc9d9cc06b34756e26b5 (diff)
downloadninja-e404c691b84ca8fd1ab17fc6187bccb3f94258fb.tar.gz
Merge branch 'refs/heads/NinjaInternal' into FileIO
Diffstat (limited to 'js/tools/BrushTool.js')
-rwxr-xr-xjs/tools/BrushTool.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tools/BrushTool.js b/js/tools/BrushTool.js
index ce8ffbb9..4d44326f 100755
--- a/js/tools/BrushTool.js
+++ b/js/tools/BrushTool.js
@@ -201,7 +201,7 @@ exports.BrushTool = Montage.create(ShapeTool, {
201 var top = Math.round(midPt[1] - 0.5 * h); 201 var top = Math.round(midPt[1] - 0.5 * h);
202 202
203 if (!canvas) { 203 if (!canvas) {
204 var newCanvas = NJUtils.makeNJElement("canvas", "Brushstroke", "shape", null, true); 204 var newCanvas = NJUtils.makeNJElement("canvas", "Brushstroke", "shape", {"data-RDGE-id": NJUtils.generateRandom()}, true);
205 var elementModel = TagTool.makeElement(w, h, planeMat, midPt, newCanvas); 205 var elementModel = TagTool.makeElement(w, h, planeMat, midPt, newCanvas);
206 ElementMediator.addElement(newCanvas, elementModel.data, true); 206 ElementMediator.addElement(newCanvas, elementModel.data, true);
207 207