@@ -178,22 +178,28 @@ export class ModelViewerGLTFInstance extends GLTFInstance {
178
178
179
179
const clone = material . clone ( ) as MeshStandardMaterial ;
180
180
if ( material . map != null ) {
181
- material . map = material . map . clone ( ) ;
181
+ clone . map = material . map . clone ( ) ;
182
+ clone . map . needsUpdate = true ;
182
183
}
183
184
if ( material . normalMap != null ) {
184
- material . normalMap = material . normalMap . clone ( ) ;
185
+ clone . normalMap = material . normalMap . clone ( ) ;
186
+ clone . normalMap . needsUpdate = true ;
185
187
}
186
188
if ( material . aoMap != null ) {
187
- material . aoMap = material . aoMap . clone ( ) ;
189
+ clone . aoMap = material . aoMap . clone ( ) ;
190
+ clone . aoMap . needsUpdate = true ;
188
191
}
189
192
if ( material . emissiveMap != null ) {
190
- material . emissiveMap = material . emissiveMap . clone ( ) ;
193
+ clone . emissiveMap = material . emissiveMap . clone ( ) ;
194
+ clone . emissiveMap . needsUpdate = true ;
191
195
}
192
196
if ( material . metalnessMap != null ) {
193
- material . metalnessMap = material . metalnessMap . clone ( ) ;
197
+ clone . metalnessMap = material . metalnessMap . clone ( ) ;
198
+ clone . metalnessMap . needsUpdate = true ;
194
199
}
195
200
if ( material . roughnessMap != null ) {
196
- material . roughnessMap = material . roughnessMap . clone ( ) ;
201
+ clone . roughnessMap = material . roughnessMap . clone ( ) ;
202
+ clone . roughnessMap . needsUpdate = true ;
197
203
}
198
204
199
205
// This allows us to patch three's materials, on top of patches already
0 commit comments