Skip to content

Commit

Permalink
v3.1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
larshoeg authored and brianzinn committed Nov 17, 2023
1 parent fed074c commit da9d056
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/react-babylonjs/src/customComponents/Model.tsx
Expand Up @@ -23,10 +23,9 @@ export type ModelProps = {
onLoadProgress?: (event: ISceneLoaderProgressEvent) => void
onCreated?: (rootMesh: AbstractMesh) => void
} & FiberAbstractMeshProps &
FiberAbstractMeshPropsCtor &
{ children?: ReactNode | undefined }
FiberAbstractMeshPropsCtor & { children?: ReactNode | undefined }

const Model: React.FC<ModelProps> = forwardRef<AbstractMesh, ModelProps>((props, ref) => {
const Model = forwardRef<AbstractMesh, ModelProps>((props, ref) => {
const {
alwaysSelectAsActiveMesh,
meshNames,
Expand Down Expand Up @@ -64,9 +63,14 @@ const Model: React.FC<ModelProps> = forwardRef<AbstractMesh, ModelProps>((props,
}, [])

return (
<abstractMesh ref={ref} fromInstance={sceneLoaderResults.rootMesh!} childMeshesNotTracked {...rest} >
{children}
</abstractMesh>
<abstractMesh
ref={ref}
fromInstance={sceneLoaderResults.rootMesh!}
childMeshesNotTracked
{...rest}
>
{children}
</abstractMesh>
)
})

Expand Down

0 comments on commit da9d056

Please sign in to comment.