From 9d7426f3a2968e4075563c64a6d7f3e1d2696757 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 27 Jan 2023 00:20:30 -0300 Subject: [PATCH] [VRML] Also download the WRL - When we download a STEP file --- kibot/out_base_3d.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kibot/out_base_3d.py b/kibot/out_base_3d.py index 16e9c75b..ded0208f 100644 --- a/kibot/out_base_3d.py +++ b/kibot/out_base_3d.py @@ -169,6 +169,10 @@ class Base3DOptions(VariantOptions): url = url[:-4]+'.step' fname = fname[:-4]+'.step' self.download_model(url, fname, rel_dirs) + elif force_wrl: # This should be a .step, so we download the wrl + url = os.path.splitext(url)[0]+'.wrl' + fname = os.path.splitext(fname)[0]+'.wrl' + self.download_model(url, fname, rel_dirs) if replace: source_models.add(replace) old_name = m3d.m_Filename