Skip to content

Conversation

ckdwns9121
Copy link
Contributor

Summary

Improve TypeScript type safety in ModelViewer component by replacing any types with proper type guards and handling material arrays correctly.

Changes

  • Add type guard functions for isMeshObject and isLightObject
  • Replace any types with THREE.Object3D in traverse callbacks
  • Handle both single material and material array cases properly
  • Fix TypeScript errors related to material properties
@DavidHDev DavidHDev merged commit c34c206 into DavidHDev:main Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants