Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): reference to three-mesh-bvh #2014

Merged
merged 1 commit into from
Jul 7, 2024

Conversation

Methuselah96
Copy link
Contributor

Why

Fixes #2013

What

Removes custom.d.ts that stubs three-mesh-bvh types and fix resulting type errors

Checklist

  • Ready to be merged

Copy link

vercel bot commented Jun 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drei ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 30, 2024 10:34pm

;(material.current as any).bvh.updateFrom(
new MeshBVH(geometry.clone().toNonIndexed(), { lazyGeneration: false, strategy: SAH })
)
;(material.current as any).bvh.updateFrom(new MeshBVH(geometry.clone().toNonIndexed(), { strategy: SAH }))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lazyGeneration was removed in gkjohnson/three-mesh-bvh#196

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Comment on lines +9 to +12
declare module 'three-mesh-bvh' {
const shaderIntersectFunction: string
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable is exported, but is not in three-mesh-bvh's declarations.

@CodyJasonBennett CodyJasonBennett merged commit 88cb779 into pmndrs:master Jul 7, 2024
4 checks passed
Copy link

github-actions bot commented Jul 7, 2024

🎉 This PR is included in version 9.108.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Methuselah96 Methuselah96 deleted the fix-reference branch July 14, 2024 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type error in declaration files
2 participants