diff options
author | Nivesh Rajbhandari | 2012-04-05 12:12:36 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-04-05 12:12:36 -0700 |
commit | 4dc89306c43e86cdac254c81fb9bb3a92eb4a8b9 (patch) | |
tree | 9fc9a25696ddaeb1781865ec535b6c65ac985e89 /js/tools/PenTool.js | |
parent | 1e2e0a8d04e55c0ecfb0b1b674792b69fb091415 (diff) | |
download | ninja-4dc89306c43e86cdac254c81fb9bb3a92eb4a8b9.tar.gz |
Removing fill, stroke, fillMaterial and strokeMaterial from the shapeModel cache because they can easily get out of sync with the actual colors and materials. Instead, we will always query the object for these values.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/tools/PenTool.js')
-rwxr-xr-x | js/tools/PenTool.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js index aa14ea75..7f6f190a 100755 --- a/js/tools/PenTool.js +++ b/js/tools/PenTool.js | |||
@@ -610,12 +610,6 @@ exports.PenTool = Montage.create(ShapeTool, { | |||
610 | newCanvas.elementModel.selection = "Subpath"; | 610 | newCanvas.elementModel.selection = "Subpath"; |
611 | newCanvas.elementModel.pi = "SubpathPi"; | 611 | newCanvas.elementModel.pi = "SubpathPi"; |
612 | newCanvas.elementModel.shapeModel.strokeSize = this.options.strokeSize.value + " " + this.options.strokeSize.units; | 612 | newCanvas.elementModel.shapeModel.strokeSize = this.options.strokeSize.value + " " + this.options.strokeSize.units; |
613 | var strokeColor = subpath.getStrokeColor(); | ||
614 | newCanvas.elementModel.shapeModel.stroke = strokeColor; | ||
615 | if(strokeColor) { | ||
616 | newCanvas.elementModel.shapeModel.border = this.application.ninja.colorController.colorToolbar.stroke; | ||
617 | } | ||
618 | newCanvas.elementModel.shapeModel.strokeMaterial = subpath.getStrokeMaterial(); | ||
619 | 613 | ||
620 | newCanvas.elementModel.shapeModel.GLGeomObj = subpath; | 614 | newCanvas.elementModel.shapeModel.GLGeomObj = subpath; |
621 | newCanvas.elementModel.shapeModel.useWebGl = this.options.use3D; | 615 | newCanvas.elementModel.shapeModel.useWebGl = this.options.use3D; |