File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -688,14 +688,18 @@ THREE.OBJLoader = ( function () {
688688 if ( isLine && material && ! ( material instanceof THREE . LineBasicMaterial ) ) {
689689
690690 var materialLine = new THREE . LineBasicMaterial ( ) ;
691- materialLine . copy ( material ) ;
692- materialLine . lights = false ; // TOFIX
691+ THREE . Material . prototype . copy . call ( materialLine , material ) ;
692+ materialLine . color . copy ( material . color ) ;
693+ materialLine . lights = false ;
693694 material = materialLine ;
694695
695696 } else if ( isPoints && material && ! ( material instanceof THREE . PointsMaterial ) ) {
696697
697698 var materialPoints = new THREE . PointsMaterial ( { size : 10 , sizeAttenuation : false } ) ;
698- materialLine . copy ( material ) ;
699+ THREE . Material . prototype . copy . call ( materialPoints , material ) ;
700+ materialPoints . color . copy ( material . color ) ;
701+ materialPoints . map = material . map ;
702+ materialPoints . lights = false ;
699703 material = materialPoints ;
700704
701705 }
You can’t perform that action at this time.
0 commit comments