diff options
author | Jose Antonio Marquez | 2012-02-17 00:20:42 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-02-17 00:20:42 -0800 |
commit | 7e9c50aaa9774f1c8840e19d831ed2e7bfd9f61f (patch) | |
tree | 0a51be74f0d5b1f6c740cd1a9c79e00624a0c0af /js/tools/BrushTool.js | |
parent | 9fe5d98bf469036c856e28d71ad4160d630b4af4 (diff) | |
parent | 18a42c37d080c03830c3f0a4156b81044e6309ee (diff) | |
download | ninja-7e9c50aaa9774f1c8840e19d831ed2e7bfd9f61f.tar.gz |
Merge branch 'refs/heads/NinjaInternal' into Color
Diffstat (limited to 'js/tools/BrushTool.js')
-rwxr-xr-x | js/tools/BrushTool.js | 2 |
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 | ||