Skip to content

Commit

Permalink
Fix the setting of the parameter when the file is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Nov 2, 2024
1 parent 8de825c commit 776ad69
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ public List<CSG> process(List<CSG> incoming) {
// ArrayList<Object>args = new ArrayList<>();
// args.addAll(Arrays.asList(getName() ));
ArrayList<CSG> collect = new ArrayList<>();
List<CSG> flattenedCSGs = ScriptingEngine.flaten(getFile(), CSG.class, null);
File file = getFile();
String pathname = file.getAbsolutePath();
getParameter(pathname).setStrValue(pathname);
List<CSG> flattenedCSGs = ScriptingEngine.flaten(file, CSG.class, null);
com.neuronrobotics.sdk.common.Log.error("Initial Loading " + getStrValue());
for (int i = 0; i < flattenedCSGs.size(); i++) {
CSG csg = flattenedCSGs.get(i);
Expand Down Expand Up @@ -128,7 +131,8 @@ public File getFile() {
StringParameter loc = new StringParameter("CaDoodle_File_Location", "NotSet", new ArrayList<String>());
File parentFile = new File(loc.getStrValue()).getParentFile();
File file = new File(getStrValue());
return new File(parentFile.getAbsolutePath()+DownloadManager.delim()+file.getName());
String pathname = parentFile.getAbsolutePath()+DownloadManager.delim()+file.getName();
return new File(pathname);
}

private String getStrValue() {
Expand Down

0 comments on commit 776ad69

Please sign in to comment.