aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-02-03 15:23:08 -0800
committerNivesh Rajbhandari2012-02-03 15:23:08 -0800
commit4b8eb7442b41db7e06b639ba4a31bb7664209159 (patch)
treee72b2f8a3bb2d506626e21f8e54daf4146f31141
parentd7ad2659d7ef8d0fffbb1cba8218061ebd516dd0 (diff)
downloadninja-4b8eb7442b41db7e06b639ba4a31bb7664209159.tar.gz
Update element planes after shapes are created so stage grid updates.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
-rw-r--r--js/tools/LineTool.js1
-rw-r--r--js/tools/ShapeTool.js1
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);