Skip to content

Commit 376c477

Browse files
Make DownloadModelOptions (mostly) optional.
Bump version 2.0.2
1 parent a43692b commit 376c477

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webgl-obj-loader",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "A simple OBJ model loader to help facilitate the learning of WebGL",
55
"main": "dist/webgl-obj-loader.min.js",
66
"types": "dist/index.d.ts",

src/utils.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ function getMtl(modelOptions: DownloadModelsOptions): string {
6464

6565
export interface DownloadModelsOptions {
6666
obj: string;
67-
mtl: boolean | string;
68-
downloadMtlTextures: boolean;
69-
mtlTextureRoot: string;
70-
name: string;
71-
indicesPerMaterial: boolean;
72-
calcTangentsAndBitangents: boolean;
67+
mtl?: boolean | string;
68+
downloadMtlTextures?: boolean;
69+
mtlTextureRoot?: string;
70+
name?: string;
71+
indicesPerMaterial?: boolean;
72+
calcTangentsAndBitangents?: boolean;
7373
}
7474

7575
type ModelPromises = [Promise<string>, Promise<Mesh>, undefined | Promise<MaterialLibrary>];

0 commit comments

Comments
 (0)