diff options
author | Nivesh Rajbhandari | 2012-04-04 16:47:51 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-04-04 16:47:51 -0700 |
commit | 13368ca6ebbc13adeafccd898dfffd7ce37cb28a (patch) | |
tree | fb45f74ede82a32d686a38e71f2c42c5d2ff9370 /js/lib/geom/rectangle.js | |
parent | 488afcf1604df3d611eca5253d57cc5a79ed80c3 (diff) | |
parent | 8b60a68f0152c609ad94a931472680f313678d8d (diff) | |
download | ninja-13368ca6ebbc13adeafccd898dfffd7ce37cb28a.tar.gz |
Merge branch 'refs/heads/WebGLFileIO' into ToolFixes
Conflicts:
assets/canvas-runtime.js
js/controllers/elements/shapes-controller.js
js/lib/drawing/world.js
js/lib/geom/geom-obj.js
js/lib/geom/line.js
js/mediators/element-mediator.js
js/panels/presets/animations-presets.reel/animations-presets.js
js/panels/presets/style-presets.reel/style-presets.js
js/panels/presets/transitions-presets.reel/transitions-presets.js
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/lib/geom/rectangle.js')
-rwxr-xr-x | js/lib/geom/rectangle.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/js/lib/geom/rectangle.js b/js/lib/geom/rectangle.js index 00c40eb9..91b1d426 100755 --- a/js/lib/geom/rectangle.js +++ b/js/lib/geom/rectangle.js | |||
@@ -231,6 +231,21 @@ var Rectangle = function GLRectangle() { | |||
231 | this._strokeStyle = jObj.strokeStyle; | 231 | this._strokeStyle = jObj.strokeStyle; |
232 | var strokeMaterialName = jObj.strokeMat; | 232 | var strokeMaterialName = jObj.strokeMat; |
233 | var fillMaterialName = jObj.fillMat; | 233 | var fillMaterialName = jObj.fillMat; |
234 | |||
235 | var strokeMat = MaterialsModel.getMaterial( strokeMaterialName ); | ||
236 | if (!strokeMat) { | ||
237 | console.log( "object material not found in library: " + strokeMaterialName ); | ||
238 | strokeMat = MaterialsModel.getMaterial( MaterialsModel.getDefaultMaterialName() ); | ||
239 | } | ||
240 | this._strokeMaterial = strokeMat; | ||
241 | |||
242 | var fillMat = MaterialsModel.getMaterial( fillMaterialName ); | ||
243 | if (!fillMat) { | ||
244 | console.log( "object material not found in library: " + fillMaterialName ); | ||
245 | fillMat = MaterialsModel.getMaterial( MaterialsModel.getDefaultMaterialName() ); | ||
246 | } | ||
247 | this._fillMaterial = fillMat; | ||
248 | |||
234 | this.importMaterialsJSON( jObj.materials ); | 249 | this.importMaterialsJSON( jObj.materials ); |
235 | }; | 250 | }; |
236 | 251 | ||