Skip to content

Commit 40f275a

Browse files
committed
Update readme.
1 parent fdf6c5a commit 40f275a

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,19 @@ const assimpjs = require ('./assimpjs.js')();
9393
assimpjs.then ((ajs) => {
9494
// import model
9595
let result = ajs.ImportFile (
96-
// file name
97-
'cube_with_materials.obj',
98-
// file content as arraybuffer
99-
fs.readFileSync ('testfiles/cube_with_materials.obj'),
100-
// check if file exists by name
101-
function (fileName) {
102-
return fs.existsSync ('testfiles/' + fileName);
103-
},
104-
// get file content as arraybuffer by name
105-
function (fileName) {
106-
return fs.readFileSync ('testfiles/' + fileName);
107-
}
108-
);
96+
// file name
97+
'cube_with_materials.obj',
98+
// file content as arraybuffer
99+
fs.readFileSync ('testfiles/cube_with_materials.obj'),
100+
// check if file exists by name
101+
function (fileName) {
102+
return fs.existsSync ('testfiles/' + fileName);
103+
},
104+
// get file content as arraybuffer by name
105+
function (fileName) {
106+
return fs.readFileSync ('testfiles/' + fileName);
107+
}
108+
);
109109

110110
// parse the result json
111111
let resultJson = JSON.parse (result);

0 commit comments

Comments
 (0)