aboutsummaryrefslogtreecommitdiff
path: root/js/tools/BrushTool.js
diff options
context:
space:
mode:
authorPushkar Joshi2012-04-26 10:51:19 -0700
committerPushkar Joshi2012-04-26 10:51:19 -0700
commitd2ff4810064dd902519310fc61e2144ee025ab16 (patch)
treee83f2dd1538b7af4f73c59ba8ab64e0599c7eca0 /js/tools/BrushTool.js
parent83f4213a9858c3969ca2d91a9769242a7115f831 (diff)
downloadninja-d2ff4810064dd902519310fc61e2144ee025ab16.tar.gz
track the dragging plane based on the hit record so that the file IO works again (bug fix)
Diffstat (limited to 'js/tools/BrushTool.js')
-rw-r--r--js/tools/BrushTool.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/tools/BrushTool.js b/js/tools/BrushTool.js
index ab54d6bb..4e13bd43 100644
--- a/js/tools/BrushTool.js
+++ b/js/tools/BrushTool.js
@@ -100,6 +100,7 @@ exports.BrushTool = Montage.create(ShapeTool, {
100 } 100 }
101 var tmpPoint = webkitConvertPointFromPageToNode(this.application.ninja.stage.canvas, new WebKitPoint(x,y)); 101 var tmpPoint = webkitConvertPointFromPageToNode(this.application.ninja.stage.canvas, new WebKitPoint(x,y));
102 var hitRec = snapManager.snap(tmpPoint.x, tmpPoint.y, false); 102 var hitRec = snapManager.snap(tmpPoint.x, tmpPoint.y, false);
103 this._draggingPlane = snapManager.getDragPlane();
103 if (this._selectedSubpathCanvas){ 104 if (this._selectedSubpathCanvas){
104 snapManager.popWorkingPlane(); 105 snapManager.popWorkingPlane();
105 } 106 }