From 63f5a6de20fd0e8c9c535623b29f1971b4d9ef28 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Mon, 22 May 2023 12:50:41 -0300 Subject: [PATCH] [Fixed][Copy files] 3D models copy issues - PCB not loaded if the only action was to copy the 3D models - Problems for STEP models when copying models --- kibot/out_copy_files.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kibot/out_copy_files.py b/kibot/out_copy_files.py index 7ad270f3..26175447 100644 --- a/kibot/out_copy_files.py +++ b/kibot/out_copy_files.py @@ -121,6 +121,7 @@ class Copy_FilesOptions(Base3DOptions): def get_3d_models(self, f): """ Look for the 3D models and make a list, optionally download them """ GS.check_pcb() + GS.load_board() dest_dir = f.dest if dest_dir and dest_dir[-1] == '+': dest_dir = dest_dir[:-1] @@ -148,7 +149,7 @@ class Copy_FilesOptions(Base3DOptions): if os.path.isfile(fn): new_list.append(fn) elif fn.endswith('.step'): - fn = f[:-5]+'.wrl' + fn = fn[:-5]+'.wrl' if os.path.isfile(fn): new_list.append(fn) return files_list+fnmatch.filter(new_list, f.source)