aboutsummaryrefslogtreecommitdiff
path: root/js/tools/BrushTool.js
diff options
context:
space:
mode:
authorPushkar Joshi2012-03-23 17:37:19 -0700
committerPushkar Joshi2012-03-23 17:37:19 -0700
commit591812255e0e85e52825b1269f29f86fbd0f6182 (patch)
tree0f6a0e9f25ec83f4fcd504815ee0ce1c51c67992 /js/tools/BrushTool.js
parent9b7dac9215fbd7c0fe7a80d3e8f1ff378332fec3 (diff)
downloadninja-591812255e0e85e52825b1269f29f86fbd0f6182.tar.gz
correctly update the brush stroke canvas size and position when the stroke size is changed (does not yet work when smoothing is applied) AND select the newly created brush stroke by default
Diffstat (limited to 'js/tools/BrushTool.js')
-rw-r--r--js/tools/BrushTool.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/tools/BrushTool.js b/js/tools/BrushTool.js
index f3c6773d..f7f0e4bf 100644
--- a/js/tools/BrushTool.js
+++ b/js/tools/BrushTool.js
@@ -349,9 +349,10 @@ exports.BrushTool = Montage.create(ShapeTool, {
349 // TODO - update the shape's info only. shapeModel will likely need an array of shapes. 349 // TODO - update the shape's info only. shapeModel will likely need an array of shapes.
350 } 350 }
351 351
352 if(newCanvas.elementModel.isShape) 352 //if(newCanvas.elementModel.isShape)
353 if (true)
353 { 354 {
354 this.application.ninja.selectionController.selectElement(canvas); 355 this.application.ninja.selectionController.selectElement(newCanvas);
355 } 356 }
356 } 357 }
357 } //if (!canvas) { 358 } //if (!canvas) {