Skip to content

Commit

Permalink
LoadedGLTF remove unused fn_index: number parameter in `process_a…
Browse files Browse the repository at this point in the history
…fterLoaded` method (#143)
  • Loading branch information
Vatroslav Vrbanic committed Aug 19, 2022
1 parent e58921e commit 9881e55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/LoadedGLTF.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ svelthree uses svelte-accmod, where accessors are always `true`, regardless of `
loader.loadAsync(url, onProgress).then((loadedGLTF: GLTF) => {
content = loadedGLTF
if (afterLoaded?.length) process_afterLoaded(0)
if (afterLoaded?.length) process_afterLoaded()
dispatch("loaded")
})
}
Expand All @@ -268,7 +268,7 @@ svelthree uses svelte-accmod, where accessors are always `true`, regardless of `
* See `GLTF_afterLoaded` class for some premade common tasks.*/
export let afterLoaded: ((dummy: GLTF, ...args: any[]) => Promise<void>)[] | undefined = undefined
async function process_afterLoaded(fn_index: number) {
async function process_afterLoaded() {
dispatch("afterLoaded_start")
//console.log("processAfterLoaded started!")
Expand Down

0 comments on commit 9881e55

Please sign in to comment.