Skip to content

Commit 6acc266

Browse files
committed
fix build #122
1 parent a8c7fe2 commit 6acc266

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hooks/loaders/useSceneLoader.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type SceneLoaderOptions = {
2828
/**
2929
* An array of mesh names, a single mesh name, or empty string for all meshes that filter what meshes are imported
3030
*/
31-
meshNames: any
31+
meshNames?: any
3232

3333
/**
3434
* set that all meshes receive shadows.
@@ -120,7 +120,7 @@ const useSceneLoaderWithCache = (): (rootUrl: string, sceneFilename: string, plu
120120
loadedModel.status = LoaderStatus.Loading
121121

122122
let loader: Nullable<ISceneLoaderPlugin | ISceneLoaderPluginAsync> = SceneLoader.ImportMesh(
123-
meshNames: opts.meshNames,
123+
opts.meshNames,
124124
rootUrl,
125125
sceneFilename,
126126
scene,

0 commit comments

Comments
 (0)