aboutsummaryrefslogtreecommitdiff
path: root/js/lib/geom/rectangle.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-03-09 10:13:59 -0800
committerJose Antonio Marquez2012-03-09 10:13:59 -0800
commitd549383abf18a0dc54a990983fb4296602b66120 (patch)
treeac107d3823abb846c1afae3d03abce0f6aae2c98 /js/lib/geom/rectangle.js
parent3bcdfaa322ac53609b66ecedbace1872048fd310 (diff)
parent7b6e8194b91168abdeb94702eb350d14f147858b (diff)
downloadninja-d549383abf18a0dc54a990983fb4296602b66120.tar.gz
Merge branch 'refs/heads/integration' into FileIO-Integration
Conflicts: js/document/html-document.js
Diffstat (limited to 'js/lib/geom/rectangle.js')
-rwxr-xr-xjs/lib/geom/rectangle.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/lib/geom/rectangle.js b/js/lib/geom/rectangle.js
index f91e830c..370bb257 100755
--- a/js/lib/geom/rectangle.js
+++ b/js/lib/geom/rectangle.js
@@ -79,6 +79,8 @@ var Rectangle = function GLRectangle() {
79 } else { 79 } else {
80 this._fillMaterial = MaterialsModel.exportFlatMaterial(); 80 this._fillMaterial = MaterialsModel.exportFlatMaterial();
81 } 81 }
82
83 this.exportMaterials();
82 }; 84 };
83 85
84 /////////////////////////////////////////////////////////////////////// 86 ///////////////////////////////////////////////////////////////////////
@@ -264,8 +266,9 @@ var Rectangle = function GLRectangle() {
264 console.log( "object material not found in library: " + fillMaterialName ); 266 console.log( "object material not found in library: " + fillMaterialName );
265 fillMat = MaterialsModel.exportFlatMaterial(); 267 fillMat = MaterialsModel.exportFlatMaterial();
266 } 268 }
267
268 this._fillMaterial = fillMat; 269 this._fillMaterial = fillMat;
270
271 this.importMaterials( importStr );
269 }; 272 };
270 273
271 this.buildBuffers = function() { 274 this.buildBuffers = function() {