diff options
author | Jonathan Duran | 2012-03-23 07:24:39 -0700 |
---|---|---|
committer | Jonathan Duran | 2012-03-23 07:24:39 -0700 |
commit | 846d539997bf188b9caf63cdf0008367fe6c9ede (patch) | |
tree | ae0ed9293cd5859cd10694fb2e045b2101ed8df8 /js/lib/geom | |
parent | 595a569cf459e7e7cbe19e546c23322b56e44341 (diff) | |
parent | 57cc00a5ef3ab525e54a030d7692b2d9eefaa68b (diff) | |
download | ninja-846d539997bf188b9caf63cdf0008367fe6c9ede.tar.gz |
Merge branch 'refs/heads/NINJAmaster' into TimelineUber
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 | ||