File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -740,11 +740,11 @@ THREE.GLTFLoader = ( function () {
740740 }
741741 ) ;
742742
743- delete this . metalness
744- delete this . roughness
745- delete this . metalnessMap
746- delete this . roughnessMap
747743 /*eslint-enable*/
744+ delete this . metalness ;
745+ delete this . roughness ;
746+ delete this . metalnessMap ;
747+ delete this . roughnessMap ;
748748
749749 this . setValues ( params ) ;
750750
@@ -757,9 +757,13 @@ THREE.GLTFLoader = ( function () {
757757
758758 THREE . MeshStandardMaterial . prototype . copy . call ( this , source ) ;
759759 this . specularMap = source . specularMap ;
760- this . specular . copy ( source . specular ) ;
760+ this . specular . copy ( source . specular ) ;
761761 this . glossinessMap = source . glossinessMap ;
762762 this . glossiness = source . glossiness ;
763+ delete this . metalness ;
764+ delete this . roughness ;
765+ delete this . metalnessMap ;
766+ delete this . roughnessMap ;
763767 return this ;
764768
765769 } ;
You can’t perform that action at this time.
0 commit comments