diff options
author | Valerio Virgillito | 2012-05-30 14:51:33 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-30 14:51:33 -0700 |
commit | 817a80d9415b2fc7fde04e779e44292f8d3deb97 (patch) | |
tree | bdce2dddc901d34aef1b9d60c2ce0afff432c0e0 /js/tools/PenTool.js | |
parent | 501221d0bbf776ce71bc7ae0f482c931f6651659 (diff) | |
parent | 435a36425a411c7b9a711670c74abcd04551750d (diff) | |
download | ninja-817a80d9415b2fc7fde04e779e44292f8d3deb97.tar.gz |
Merge branch 'document-bindings-fix' of github.com:mencio/ninja-internal into document-bindings-fix
Diffstat (limited to 'js/tools/PenTool.js')
-rwxr-xr-x | js/tools/PenTool.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js index 10eb03c9..3813123a 100755 --- a/js/tools/PenTool.js +++ b/js/tools/PenTool.js | |||
@@ -428,7 +428,7 @@ exports.PenTool = Montage.create(ShapeTool, { | |||
428 | var globalMousePos=null, localMousePos=null, stageWorldMousePos = null; | 428 | var globalMousePos=null, localMousePos=null, stageWorldMousePos = null; |
429 | var drawingCanvas = this._selectedSubpath.getCanvas(); | 429 | var drawingCanvas = this._selectedSubpath.getCanvas(); |
430 | if (!drawingCanvas){ | 430 | if (!drawingCanvas){ |
431 | drawingCanvas = ViewUtils.getStageElement(); | 431 | drawingCanvas = this.application.ninja.currentDocument.model.documentRoot; |
432 | stageWorldMousePos = hitRec.calculateStageWorldPoint(); | 432 | stageWorldMousePos = hitRec.calculateStageWorldPoint(); |
433 | stageWorldMousePos[0]+= snapManager.getStageWidth()*0.5; | 433 | stageWorldMousePos[0]+= snapManager.getStageWidth()*0.5; |
434 | stageWorldMousePos[1]+= snapManager.getStageHeight()*0.5; | 434 | stageWorldMousePos[1]+= snapManager.getStageHeight()*0.5; |