Skip to content

Commit 7463917

Browse files
authored
Fix Basic Material not preserving material names from GLB models (#8256)
1 parent 6c7037d commit 7463917

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Extensions/3D/Model3DRuntimeObject3DRenderer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ namespace gdjs {
3232
material: THREE.Material
3333
): THREE.MeshBasicMaterial => {
3434
const basicMaterial = new THREE.MeshBasicMaterial();
35+
basicMaterial.name = material.name;
3536
//@ts-ignore
3637
if (material.color) {
3738
//@ts-ignore

0 commit comments

Comments
 (0)