Prevent crash when no importable objects found.
This commit is contained in:
parent
98889adb95
commit
d7345647fc
@ -332,6 +332,12 @@ export class ImporterFcstd extends ImporterBase
|
||||
}
|
||||
|
||||
let objectsToConvert = this.document.GetObjectListToConvert ();
|
||||
if (objectsToConvert.length === 0) {
|
||||
this.SetError ('No importable object found.');
|
||||
onFinish ();
|
||||
return;
|
||||
}
|
||||
|
||||
this.ConvertObjects (objectsToConvert, onFinish);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user