Skip to content

Commit 2443963

Browse files
committed
fix semi and delete prop from source
1 parent 1007e56 commit 2443963

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

examples/js/loaders/GLTFLoader.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)