Skip to content

Commit

Permalink
Merge pull request #28 from readyplayerme/fix/exhibit-types
Browse files Browse the repository at this point in the history
fix: allow blob model for exhibit component
  • Loading branch information
Zaehiel authored May 29, 2023
2 parents 60d9162 + 990e73d commit 3f58e66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Exhibit/Exhibit.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface ExhibitProps extends CameraProps, EnvironmentProps {
/**
* Arbitrary binary data (base64 string | Blob) of a `.glb` file or path (URL) to a `.glb` resource.
*/
modelSrc: string;
modelSrc: string | Blob;
/**
* Size of the rendered GLB model.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useGltfLoader } from 'src/services';
import { BaseModelProps } from 'src/types';

export interface FloatingModelProps extends BaseModelProps {
modelSrc: string;
modelSrc: string | Blob;
scale?: number;
}

Expand Down

0 comments on commit 3f58e66

Please sign in to comment.