Browse Source

Line: Nicer backwards compatibility for THREE.LinePieces.

Mr.doob 10 years ago
parent
commit
f627040913
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/objects/Line.js

+ 2 - 1
src/objects/Line.js

@@ -6,7 +6,8 @@ THREE.Line = function ( geometry, material, mode ) {
 
 
 	if ( mode === 1 ) {
 	if ( mode === 1 ) {
 
 
-		console.error( 'THREE.Line: THREE.LinePieces mode has been removed. Use THREE.LineSegments instead.' );
+		console.warn( 'THREE.Line: parameter THREE.LinePieces no longer supported. Created THREE.LineSegments instead.' );
+		return new THREE.LineSegments( geometry, material );
 
 
 	}
 	}