Skip to content

Commit 7f9a82a

Browse files
committed
GLTFLoader: Simplify code.
1 parent 6ef4cf4 commit 7f9a82a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/jsm/loaders/GLTFLoader.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2906,10 +2906,10 @@ class GLTFParser {
29062906

29072907
return this.sourceCache[ sourceIndex ].then( function ( texture ) {
29082908

2909-
const clonedTexture = texture.clone();
2910-
clonedTexture.needsUpdate = true;
2909+
texture = texture.clone();
2910+
texture.needsUpdate = true;
29112911

2912-
return clonedTexture;
2912+
return texture;
29132913

29142914
} ).catch( function ( error ) {
29152915

0 commit comments

Comments
 (0)