aboutsummaryrefslogtreecommitdiff
path: root/js/tools
diff options
context:
space:
mode:
authorJohn Mayhew2012-05-10 15:10:58 -0700
committerJohn Mayhew2012-05-10 15:10:58 -0700
commitba64dfa1d64969e290f15459a826171468fe3550 (patch)
tree10b26bbfde954d4069b58e866d1105047a2ec72e /js/tools
parentd32cf39a8ef1e2d2fb50f1183c5546fdac83b396 (diff)
downloadninja-ba64dfa1d64969e290f15459a826171468fe3550.tar.gz
put color chips in the inkbottle and fill tool
Diffstat (limited to 'js/tools')
-rwxr-xr-xjs/tools/FillTool.js7
-rwxr-xr-xjs/tools/InkBottleTool.js2
-rwxr-xr-xjs/tools/PenTool.js2
3 files changed, 5 insertions, 6 deletions
diff --git a/js/tools/FillTool.js b/js/tools/FillTool.js
index 87a093ff..66dd9305 100755
--- a/js/tools/FillTool.js
+++ b/js/tools/FillTool.js
@@ -72,9 +72,9 @@ exports.FillTool = Montage.create(ModifierToolBase, {
72 value: function(event) { 72 value: function(event) {
73 this.isDrawing = true; 73 this.isDrawing = true;
74 74
75 if(this._canColor && this.application.ninja.selectedElements.length) 75 if(this._canColor && this.application.ninja.selectedElements.length) {
76 { 76
77 var color = this.application.ninja.colorController.colorToolbar.fill, 77 var color = this.options.fill,
78 colorInfo; 78 colorInfo;
79 if(color && color.color) 79 if(color && color.color)
80 { 80 {
@@ -92,5 +92,4 @@ exports.FillTool = Montage.create(ModifierToolBase, {
92 } 92 }
93 } 93 }
94 } 94 }
95
96}); \ No newline at end of file 95}); \ No newline at end of file
diff --git a/js/tools/InkBottleTool.js b/js/tools/InkBottleTool.js
index fd17f4d6..2c03d133 100755
--- a/js/tools/InkBottleTool.js
+++ b/js/tools/InkBottleTool.js
@@ -69,7 +69,7 @@ exports.InkBottleTool = Montage.create(ModifierToolBase, {
69 69
70 if(this._canColor && this.application.ninja.selectedElements.length) 70 if(this._canColor && this.application.ninja.selectedElements.length)
71 { 71 {
72 var color = this.application.ninja.colorController.colorToolbar.stroke, 72 var color = this.options.stroke,
73 colorInfo; 73 colorInfo;
74 if(color && color.color) 74 if(color && color.color)
75 { 75 {
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js
index e70bed27..10eb03c9 100755
--- a/js/tools/PenTool.js
+++ b/js/tools/PenTool.js
@@ -592,7 +592,7 @@ exports.PenTool = Montage.create(ShapeTool, {
592 var strokeColor = subpath.getStrokeColor(); 592 var strokeColor = subpath.getStrokeColor();
593 newCanvas.elementModel.shapeModel.stroke = strokeColor; 593 newCanvas.elementModel.shapeModel.stroke = strokeColor;
594 if(strokeColor) { 594 if(strokeColor) {
595 newCanvas.elementModel.shapeModel.border = this.application.ninja.colorController.colorToolbar.stroke; 595 newCanvas.elementModel.shapeModel.border = this.options.stroke;
596 } 596 }
597 newCanvas.elementModel.shapeModel.GLGeomObj = subpath; 597 newCanvas.elementModel.shapeModel.GLGeomObj = subpath;
598 newCanvas.elementModel.shapeModel.useWebGl = false;//this.options.use3D; 598 newCanvas.elementModel.shapeModel.useWebGl = false;//this.options.use3D;