aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPushkar Joshi2012-03-13 08:22:06 -0700
committerPushkar Joshi2012-03-13 08:22:06 -0700
commit730c42e005b1ebd96448e3bc2dd700ffd8909cb5 (patch)
tree1c2c166ec621d075d56ab8f96f29f609eef066d3
parent46b2e561fa6ca054cad58e4c372a598bbb7ee2c9 (diff)
downloadninja-730c42e005b1ebd96448e3bc2dd700ffd8909cb5.tar.gz
turn off the fill color for pen tool paths by default
-rwxr-xr-xjs/lib/geom/sub-path.js2
-rwxr-xr-xjs/tools/PenTool.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/js/lib/geom/sub-path.js b/js/lib/geom/sub-path.js
index 0a65511b..017cca92 100755
--- a/js/lib/geom/sub-path.js
+++ b/js/lib/geom/sub-path.js
@@ -73,7 +73,7 @@ var GLSubpath = function GLSubpath() {
73 this._materialAmbient = [0.2, 0.2, 0.2, 1.0]; 73 this._materialAmbient = [0.2, 0.2, 0.2, 1.0];
74 this._materialDiffuse = [0.4, 0.4, 0.4, 1.0]; 74 this._materialDiffuse = [0.4, 0.4, 0.4, 1.0];
75 this._materialSpecular = [0.4, 0.4, 0.4, 1.0]; 75 this._materialSpecular = [0.4, 0.4, 0.4, 1.0];
76 this._fillColor = [0.4, 0.4, 0.4, 1.0]; 76 this._fillColor = [1.0, 1.0, 1.0, 0.0];
77 this._fillMaterial = null; 77 this._fillMaterial = null;
78 this._DISPLAY_ANCHOR_RADIUS = 5; 78 this._DISPLAY_ANCHOR_RADIUS = 5;
79 //drawing context 79 //drawing context
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js
index 6897c003..60ef4f92 100755
--- a/js/tools/PenTool.js
+++ b/js/tools/PenTool.js
@@ -467,9 +467,9 @@ exports.PenTool = Montage.create(ShapeTool, {
467 if (this.application.ninja.colorController.colorToolbar.stroke.webGlColor){ 467 if (this.application.ninja.colorController.colorToolbar.stroke.webGlColor){
468 this._selectedSubpath.setStrokeColor(this.application.ninja.colorController.colorToolbar.stroke.webGlColor); 468 this._selectedSubpath.setStrokeColor(this.application.ninja.colorController.colorToolbar.stroke.webGlColor);
469 } 469 }
470 if (this.application.ninja.colorController.colorToolbar.fill.webGlColor){ 470 //if (this.application.ninja.colorController.colorToolbar.fill.webGlColor){
471 this._selectedSubpath.setFillColor(this.application.ninja.colorController.colorToolbar.fill.webGlColor); 471 // this._selectedSubpath.setFillColor(this.application.ninja.colorController.colorToolbar.fill.webGlColor);
472 } 472 //}
473 } //if this is a new path being rendered 473 } //if this is a new path being rendered
474 474
475 this._selectedSubpath.makeDirty(); 475 this._selectedSubpath.makeDirty();