diff options
author | Jose Antonio Marquez | 2012-03-16 21:03:58 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-03-16 21:03:58 -0700 |
commit | 415bab69cca4e8511144407b67bec80f2ba95422 (patch) | |
tree | c336ca8ae1bcd6761c924bacf8bfe7143b2c7885 /js/lib/geom | |
parent | e7e18f02870a0cfe06e550acf8ffef6eab945231 (diff) | |
parent | 954f5a13e371febcb1c0fb8015c577ee51c23130 (diff) | |
download | ninja-415bab69cca4e8511144407b67bec80f2ba95422.tar.gz |
Merge branch 'refs/heads/Ninja-Internal' into Document
Diffstat (limited to 'js/lib/geom')
-rwxr-xr-x | js/lib/geom/geom-obj.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/lib/geom/geom-obj.js b/js/lib/geom/geom-obj.js index f285f24a..a64980e0 100755 --- a/js/lib/geom/geom-obj.js +++ b/js/lib/geom/geom-obj.js | |||
@@ -325,9 +325,11 @@ var GeomObj = function GLGeomObj() { | |||
325 | if (mat) | 325 | if (mat) |
326 | mat.import( importStr ); | 326 | mat.import( importStr ); |
327 | 327 | ||
328 | var endIndex = importStr.indexOf( "endMaterial\n" ); | 328 | // pull off the end of the material |
329 | var endMat = "endMaterial\n"; | ||
330 | var endIndex = importStr.indexOf( endMat ); | ||
329 | if (endIndex < 0) break; | 331 | if (endIndex < 0) break; |
330 | importStr = importStr.substr( endIndex ); | 332 | importStr = importStr.substr( endIndex + endMat.length ); |
331 | } | 333 | } |
332 | } | 334 | } |
333 | 335 | ||