[VRML] Also download the WRL

- When we download a STEP file
This commit is contained in:
Salvador E. Tropea 2023-01-27 00:20:30 -03:00
parent 171eeae099
commit 9d7426f3a2
1 changed files with 4 additions and 0 deletions

View File

@ -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