Skip to content

Commit 6ef4cf4

Browse files
committed
GLTFLoader: Add missing needsUpdate.
1 parent c5e0fdf commit 6ef4cf4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/jsm/loaders/GLTFLoader.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2906,7 +2906,10 @@ class GLTFParser {
29062906

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

2909-
return texture.clone();
2909+
const clonedTexture = texture.clone();
2910+
clonedTexture.needsUpdate = true;
2911+
2912+
return clonedTexture;
29102913

29112914
} ).catch( function ( error ) {
29122915

0 commit comments

Comments
 (0)