Skip to content

Commit

Permalink
Make DownloadModelOptions (mostly) optional.
Browse files Browse the repository at this point in the history
Bump version 2.0.2
  • Loading branch information
frenchtoast747 committed Dec 5, 2018
1 parent a43692b commit 376c477
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webgl-obj-loader",
"version": "2.0.1",
"version": "2.0.2",
"description": "A simple OBJ model loader to help facilitate the learning of WebGL",
"main": "dist/webgl-obj-loader.min.js",
"types": "dist/index.d.ts",
Expand Down
12 changes: 6 additions & 6 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ function getMtl(modelOptions: DownloadModelsOptions): string {

export interface DownloadModelsOptions {
obj: string;
mtl: boolean | string;
downloadMtlTextures: boolean;
mtlTextureRoot: string;
name: string;
indicesPerMaterial: boolean;
calcTangentsAndBitangents: boolean;
mtl?: boolean | string;
downloadMtlTextures?: boolean;
mtlTextureRoot?: string;
name?: string;
indicesPerMaterial?: boolean;
calcTangentsAndBitangents?: boolean;
}

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

0 comments on commit 376c477

Please sign in to comment.