Skip to content

Commit

Permalink
Merge branch 'main' into renovate/pnpm-9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu authored Oct 17, 2024
2 parents cc666ae + a28463b commit e13632a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docs/.vitepress/theme/components/HomeSponsors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,21 @@ import { VPHomeSponsors } from 'vitepress/theme'
<li>
<a
class="sponsor"
href="https://github.com/sponsors/nuxt"
href="https://github.com/sponsors/danielroe "
target="_blank"
rel="noreferrer"
>
Daniel Roe <img class="w-5 h-5 rounded ml-2" src="https://avatars.githubusercontent.com/u/23360933?s=160&v=4" alt="" />
Daniel Roe <img class="w-5 h-5 rounded ml-2" src="https://avatars.githubusercontent.com/u/28706372?v=4" alt="" />
</a>
</li>
<li>
<a
class="sponsor"
href="https://github.com/sponsors/danielroe"
href="https://github.com/sponsors/nuxt"
target="_blank"
rel="noreferrer"
>
Nuxt <img class="w-5 h-5 rounded ml-2" src="https://avatars.githubusercontent.com/u/28706372?v=4" alt="" />
Nuxt <img class="w-5 h-5 rounded ml-2" src="https://avatars.githubusercontent.com/u/23360933?s=160&v=4" alt="" />
</a>
</li>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions src/composables/useLoader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export type LoaderReturnType<T, L extends LoaderProto<T>> = T extends unknown
* @param {Object3D} object
* @return { [key: string]: any }
*/
export function trasverseObjects(object: Object3D) {
export function traverseObjects(object: Object3D) {
const data: { [key: string]: any } = { nodes: {}, materials: {} }
if (object) {
object.traverse((obj: any) => {
Expand Down Expand Up @@ -87,7 +87,7 @@ export async function useLoader<T>(
(result: T) => {
const data = result as unknown as TresObject
if (data.scene) {
Object.assign(data, trasverseObjects(data.scene))
Object.assign(data, traverseObjects(data.scene))
}
resolve(data as T | T[])
},
Expand Down

0 comments on commit e13632a

Please sign in to comment.