diff options
author | Pushkar Joshi | 2012-03-05 14:35:37 -0800 |
---|---|---|
committer | Pushkar Joshi | 2012-03-05 14:35:37 -0800 |
commit | c155cd238b6f9e0b8191e0fc533f7bc974b762c2 (patch) | |
tree | 645c056432ade1d7cfe4ae2f358e068dd883d598 /js/tools/LineTool.js | |
parent | dc3c813320c8d3fb837d5d18e70ab35a53b116c1 (diff) | |
parent | 13f52cf0c74f53a919fa864f86669e8155f82961 (diff) | |
download | ninja-c155cd238b6f9e0b8191e0fc533f7bc974b762c2.tar.gz |
Merge branch 'master' into pentool
Diffstat (limited to 'js/tools/LineTool.js')
-rwxr-xr-x | js/tools/LineTool.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/js/tools/LineTool.js b/js/tools/LineTool.js index 0a7c0534..32572af1 100755 --- a/js/tools/LineTool.js +++ b/js/tools/LineTool.js | |||
@@ -206,10 +206,13 @@ exports.LineTool = Montage.create(ShapeTool, { | |||
206 | // for default stroke and fill/no materials | 206 | // for default stroke and fill/no materials |
207 | var strokeMaterial = null; | 207 | var strokeMaterial = null; |
208 | 208 | ||
209 | var strokeM = this.options.strokeMaterial; | 209 | if(this.options.use3D) |
210 | if(strokeM) | ||
211 | { | 210 | { |
212 | strokeMaterial = Object.create(MaterialsLibrary.getMaterial(strokeM)); | 211 | var strokeM = this.options.strokeMaterial; |
212 | if(strokeM) | ||
213 | { | ||
214 | strokeMaterial = Object.create(MaterialsLibrary.getMaterial(strokeM)); | ||
215 | } | ||
213 | } | 216 | } |
214 | 217 | ||
215 | var world = this.getGLWorld(canvas, this.options.use3D); | 218 | var world = this.getGLWorld(canvas, this.options.use3D); |