aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
authorhwc4872012-03-13 16:32:46 -0700
committerhwc4872012-03-13 16:32:46 -0700
commit9b40878fcc82d3ec08361e30d2029de261f0f80e (patch)
tree58cc4bdfc25495813c910c6a417d16234e34af91 /js/document
parentf6c7b88404cfa44f468170f1219b565fda3e38c1 (diff)
downloadninja-9b40878fcc82d3ec08361e30d2029de261f0f80e.tar.gz
Fixed BumpMetal material
Diffstat (limited to 'js/document')
-rwxr-xr-xjs/document/html-document.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js
index 051490f5..f4ec3184 100755
--- a/js/document/html-document.js
+++ b/js/document/html-document.js
@@ -207,9 +207,17 @@ exports.HTMLDocument = Montage.create(TextDocument, {
207 }, 207 },
208 set: function(value) { 208 set: function(value) {
209 var elt = this.documentRoot; 209 var elt = this.documentRoot;
210 if (elt) { 210 if (elt)
211 {
211 var nWorlds= value.length; 212 var nWorlds= value.length;
212 for (var i=0; i<nWorlds; i++) { 213 for (var i=0; i<nWorlds; i++)
214 {
215 /*
216 // Use this code to test the runtime version of WebGL
217 var cdm = new CanvasDataManager();
218 cdm.loadGLData(elt, value, null );
219 */
220
213 var importStr = value[i]; 221 var importStr = value[i];
214 var startIndex = importStr.indexOf( "id: " ); 222 var startIndex = importStr.indexOf( "id: " );
215 if (startIndex >= 0) { 223 if (startIndex >= 0) {