diff options
author | Armen Kesablyan | 2012-02-13 11:59:19 -0800 |
---|---|---|
committer | Armen Kesablyan | 2012-02-13 11:59:19 -0800 |
commit | 90d0c8c0e98d062c628c061fe5765ce991fda409 (patch) | |
tree | 9780e9dcf475bf319f3cacc1a1ad52fcf9f133af /js/tools/LineTool.js | |
parent | 8110e01dc5093ac6baf621103dcaa5f769e5be92 (diff) | |
parent | e142611e22718b1f1d1696902ad9161ec5f33f98 (diff) | |
download | ninja-90d0c8c0e98d062c628c061fe5765ce991fda409.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal
Conflicts:
css/ninja.css
js/stage/stage.reel/stage.html
js/tools/TextTool.js
node_modules/labs/rich-text-editor.reel/rich-text-editor.css
node_modules/labs/rich-text-editor.reel/rich-text-editor.html
node_modules/labs/rich-text-editor.reel/rich-text-editor.js
node_modules/labs/rich-text-editor.reel/rich-text-resizer.js
node_modules/labs/rich-text-editor.reel/rich-text-sanitizer.js
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/tools/LineTool.js')
-rw-r--r-- | js/tools/LineTool.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tools/LineTool.js b/js/tools/LineTool.js index 17157f23..99c374a7 100644 --- a/js/tools/LineTool.js +++ b/js/tools/LineTool.js | |||
@@ -203,10 +203,10 @@ exports.LineTool = Montage.create(ShapeTool, { | |||
203 | // for default stroke and fill/no materials | 203 | // for default stroke and fill/no materials |
204 | var strokeMaterial = null; | 204 | var strokeMaterial = null; |
205 | 205 | ||
206 | var strokeIndex = parseInt(this.options.strokeMaterial); | 206 | var strokeM = this.options.strokeMaterial; |
207 | if(strokeIndex > 0) | 207 | if(strokeM) |
208 | { | 208 | { |
209 | strokeMaterial = Object.create(MaterialsLibrary.getMaterialAt(strokeIndex-1)); | 209 | strokeMaterial = Object.create(MaterialsLibrary.getMaterial(strokeM)); |
210 | } | 210 | } |
211 | 211 | ||
212 | var world = this.getGLWorld(canvas, this.options.use3D); | 212 | var world = this.getGLWorld(canvas, this.options.use3D); |
@@ -232,12 +232,12 @@ exports.LineTool = Montage.create(ShapeTool, { | |||
232 | } | 232 | } |
233 | 233 | ||
234 | canvas.elementModel.shapeModel.strokeMaterial = strokeMaterial; | 234 | canvas.elementModel.shapeModel.strokeMaterial = strokeMaterial; |
235 | canvas.elementModel.shapeModel.strokeMaterialIndex = strokeIndex; | ||
236 | 235 | ||
237 | canvas.elementModel.shapeModel.strokeStyleIndex = strokeStyleIndex; | 236 | canvas.elementModel.shapeModel.strokeStyleIndex = strokeStyleIndex; |
238 | canvas.elementModel.shapeModel.strokeStyle = strokeStyle; | 237 | canvas.elementModel.shapeModel.strokeStyle = strokeStyle; |
239 | 238 | ||
240 | canvas.elementModel.shapeModel.GLGeomObj = line; | 239 | canvas.elementModel.shapeModel.GLGeomObj = line; |
240 | canvas.elementModel.shapeModel.useWebGl = this.options.use3D; | ||
241 | } | 241 | } |
242 | else | 242 | else |
243 | { | 243 | { |