Skip to content

Commit

Permalink
fix: 3d object cast type
Browse files Browse the repository at this point in the history
  • Loading branch information
drochetti committed Jan 28, 2024
1 parent 17358bd commit 73a7616
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/demo-nextjs-app-router/app/realtime-3d/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ function ModelBox({ modelPath }: ModelBoxProps) {
camera.position.set(0, 0, cameraDistance);
camera.lookAt(model.position);

model.traverse((child) => {
// TODO proper typeing once cast to Mesh object is fixed
model.traverse((child: any) => {

Check warning on line 72 in apps/demo-nextjs-app-router/app/realtime-3d/page.tsx

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type
if (child.isMesh) {
child.material = new MeshBasicMaterial({ color: '#bcbcbc' });

Expand Down

0 comments on commit 73a7616

Please sign in to comment.