Cannot import compound scripts.

This commit is contained in:
Jindra Petřík
2023-10-01 18:21:38 +02:00
parent e810421914
commit bef61a1123
2 changed files with 7 additions and 0 deletions
@@ -91,6 +91,10 @@ public class ScriptPack extends AS3ClassTreeItem {
private final ClassPath path;
/**
* Is the scriptpack simple? ScriptPack can be either simple or compound.
* Compound = Contains more than one externally visible definitions.
*/
public boolean isSimple = false;
public boolean scriptInitializerIsEmpty = false;
@@ -51,6 +51,9 @@ public class AS3ScriptImporter {
if (Thread.currentThread().isInterrupted()) {
return importCount;
}
if (!pack.isSimple) {
continue;
}
try {
File file = pack.getExportFile(scriptsFolder, new ScriptExportSettings(ScriptExportMode.AS, false, false, false, false));
if (file.exists()) {