Skip to content

Commit 6c7f000

Browse files
committed
OBJLoader: Added workaround note.
1 parent f34e136 commit 6c7f000

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/js/loaders/OBJLoader.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ THREE.OBJLoader.prototype = {
430430
text = text.replace( /\r\n/g, '\n' );
431431

432432
}
433-
433+
434434
if ( text.indexOf( '\\\n' ) !== - 1) {
435435

436436
// join lines separated by a line continuation character (\)
@@ -585,7 +585,10 @@ THREE.OBJLoader.prototype = {
585585
// or
586586
// g group_name
587587

588-
var name = (" " + result[ 0 ].substr( 1 ).trim()).substr(1);
588+
// WORKAROUND: https://bugs.chromium.org/p/v8/issues/detail?id=2869
589+
// var name = result[ 0 ].substr( 1 ).trim();
590+
var name = ( " " + result[ 0 ].substr( 1 ).trim() ).substr( 1 );
591+
589592
state.startObject( name );
590593

591594
} else if ( this.regexp.material_use_pattern.test( line ) ) {

0 commit comments

Comments
 (0)