From f4478073894e7bbe07d993affe5f6e1a19c69655 Mon Sep 17 00:00:00 2001 From: kovacsv Date: Wed, 1 Sep 2021 07:21:44 +0200 Subject: [PATCH] Clean-up instructions. --- README.md | 2 +- examples/browser_download_test.html | 2 +- examples/node_local_load_test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2ffe42c..eed9530 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ The library runs in the browser and as a node.js module as well. You will need two files: `assimpjs.js` and `assimpjs.wasm`. The wasm file is loaded runtime by the js file. -Given that browsers don't access the file system, you should provide all the files needed for import. Some 3D formats are coming in multiple files, so you should list all of them to import the model properly. The main file to import should always be the first one in the list. +Given that browsers don't access the file system, you should provide all the files needed for import. Some 3D formats are coming in multiple files, so you should list all of them to import the model properly. You should provide two things for every file: - **name:** The name of the file. It's used if files are referring to each other. diff --git a/examples/browser_download_test.html b/examples/browser_download_test.html index 45dc852..294952d 100644 --- a/examples/browser_download_test.html +++ b/examples/browser_download_test.html @@ -13,7 +13,7 @@ let resultDiv = document.getElementById ('result_json'); assimpjs ().then (function (ajs) { - // fetch the files to import (make sure that the main file is the first) + // fetch the files to import let files = [ 'testfiles/cube_with_materials.obj', 'testfiles/cube_with_materials.mtl' diff --git a/examples/node_local_load_test.js b/examples/node_local_load_test.js index da0b353..be0e242 100644 --- a/examples/node_local_load_test.js +++ b/examples/node_local_load_test.js @@ -5,7 +5,7 @@ assimpjs.then ((ajs) => { // create new file list object let fileList = new ajs.FileList (); - // add model files (make sure that the main file is the first) + // add model files fileList.AddFile ( 'cube_with_materials.obj', fs.readFileSync ('testfiles/cube_with_materials.obj')