mirror of
https://github.com/LucasDower/ObjToSchematic.git
synced 2025-03-07 14:06:41 +08:00
Missing .mtl gives warning instead of error
This commit is contained in:
parent
20c92e9afd
commit
71ecb62ab0
@ -308,7 +308,8 @@ export class ObjImporter extends IImporter {
|
||||
private _parseMTL() {
|
||||
for (const mtlLib of this._mtlLibs) {
|
||||
if (!fs.existsSync(mtlLib)) {
|
||||
throw new AppError(`Could not find ${mtlLib}`);
|
||||
StatusHandler.Get.add('warning', `Could not find ${mtlLib}`);
|
||||
continue;
|
||||
}
|
||||
const fileContents = fs.readFileSync(mtlLib, 'utf8');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user