File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -688,14 +688,15 @@ 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 . lights = false ;
693693 material = materialLine ;
694694
695695 } else if ( isPoints && material && ! ( material instanceof THREE . PointsMaterial ) ) {
696696
697- var materialPoints = new THREE . PointsMaterial ( { size : 10 , sizeAttenuation : false } ) ;
698- materialLine . copy ( material ) ;
697+ var materialPoints = new THREE . PointsMaterial ( { size : 2 , sizeAttenuation : false } ) ;
698+ THREE . Material . prototype . copy . call ( materialPoints , material ) ;
699+ materialPoints . lights = false ;
699700 material = materialPoints ;
700701
701702 }
You can’t perform that action at this time.
0 commit comments