diff options
author | Nivesh Rajbhandari | 2012-02-03 15:23:08 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-02-03 15:23:08 -0800 |
commit | 4b8eb7442b41db7e06b639ba4a31bb7664209159 (patch) | |
tree | e72b2f8a3bb2d506626e21f8e54daf4146f31141 /js | |
parent | d7ad2659d7ef8d0fffbb1cba8218061ebd516dd0 (diff) | |
download | ninja-4b8eb7442b41db7e06b639ba4a31bb7664209159.tar.gz |
Update element planes after shapes are created so stage grid updates.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js')
-rw-r--r-- | js/tools/LineTool.js | 1 | ||||
-rw-r--r-- | js/tools/ShapeTool.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/js/tools/LineTool.js b/js/tools/LineTool.js index a0d5a182..17157f23 100644 --- a/js/tools/LineTool.js +++ b/js/tools/LineTool.js | |||
@@ -99,6 +99,7 @@ exports.LineTool = Montage.create(ShapeTool, { | |||
99 | } | 99 | } |
100 | this.RenderShape(w, h, drawData.planeMat, drawData.midPt, | 100 | this.RenderShape(w, h, drawData.planeMat, drawData.midPt, |
101 | canvas, slope, xAdj, yAdj); | 101 | canvas, slope, xAdj, yAdj); |
102 | NJevent("elementAdded", canvas); | ||
102 | } | 103 | } |
103 | 104 | ||
104 | this.endDraw(event); | 105 | this.endDraw(event); |
diff --git a/js/tools/ShapeTool.js b/js/tools/ShapeTool.js index 9a4399b4..4ccb7a8d 100644 --- a/js/tools/ShapeTool.js +++ b/js/tools/ShapeTool.js | |||
@@ -83,6 +83,7 @@ exports.ShapeTool = Montage.create(DrawingTool, { | |||
83 | } | 83 | } |
84 | } | 84 | } |
85 | this.RenderShape(drawData.width, drawData.height, drawData.planeMat, drawData.midPt, canvas); | 85 | this.RenderShape(drawData.width, drawData.height, drawData.planeMat, drawData.midPt, canvas); |
86 | NJevent("elementAdded", canvas); | ||
86 | } | 87 | } |
87 | 88 | ||
88 | this.endDraw(event); | 89 | this.endDraw(event); |