chore: debug extractMaterialProps
Build and Deploy / build-and-push (push) Successful in 1m3s

This commit is contained in:
AI Bot
2026-09-03 13:38:55 +05:30
parent d65d6633e8
commit c11e6b52cc
+3
View File
@@ -314,6 +314,7 @@ export const extractTextureUrl = (texture: any) => {
export const extractMaterialProps = (material: any): Partial<MaterialProps> => {
console.log('[DEBUG] extractMaterialProps called with material:', material);
if (!material) return {};
const mProps: Partial<MaterialProps> = {};
@@ -324,6 +325,8 @@ export const extractMaterialProps = (material: any): Partial<MaterialProps> => {
// 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;