From c11e6b52ccc75d917db2dd14bb05a36144b75667 Mon Sep 17 00:00:00 2001 From: AI Bot Date: Thu, 3 Sep 2026 13:38:55 +0530 Subject: [PATCH] chore: debug extractMaterialProps --- src/pages/Editor.tsx | 3 +++ 1 file changed, 3 insertions(+) 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;