소스 검색

Line: Removed circular dependency.

Mr.doob 7 년 전
부모
커밋
9dfca126c4
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/objects/Line.js

+ 1 - 3
src/objects/Line.js

@@ -5,7 +5,6 @@ import { Object3D } from '../core/Object3D.js';
 import { Vector3 } from '../math/Vector3.js';
 import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
 import { BufferGeometry } from '../core/BufferGeometry.js';
-import { LineSegments } from './LineSegments.js';
 import { Float32BufferAttribute } from '../core/BufferAttribute';
 
 /**
@@ -16,8 +15,7 @@ function Line( geometry, material, mode ) {
 
 	if ( mode === 1 ) {
 
-		console.warn( 'THREE.Line: parameter THREE.LinePieces no longer supported. Created THREE.LineSegments instead.' );
-		return new LineSegments( geometry, material );
+		console.error( 'THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead.' );
 
 	}