diff --git a/src/pages/Editor.tsx b/src/pages/Editor.tsx index 483b85e..1f88cd5 100644 --- a/src/pages/Editor.tsx +++ b/src/pages/Editor.tsx @@ -314,6 +314,7 @@ export const extractTextureUrl = (texture: any) => { export const extractMaterialProps = (material: any): Partial => { + console.log('[DEBUG] extractMaterialProps called with material:', material); if (!material) return {}; const mProps: Partial = {}; @@ -324,6 +325,8 @@ export const extractMaterialProps = (material: any): Partial => { // Standard material props const m = material as any; + console.log('[DEBUG] Material properties present on m:', { map: !!m.map, normalMap: !!m.normalMap, emissiveMap: !!m.emissiveMap }); + if (m.transmission !== undefined) mProps.transmission = m.transmission; if (m.ior !== undefined) mProps.ior = m.ior; if (m.thickness !== undefined) mProps.thickness = m.thickness;